window.status='EIC';
function hidestatus(){
window.status='EIC';
return true
}

if (document.layers)
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)

document.onmouseover=hidestatus
document.onmouseout=hidestatus

// Flash Fix JS
var bo_ns_id = 0;

function startIeFix(){
  if(isIE()){
    document.write('<div style="display: none;" id="bo_ns_id_' + bo_ns_id + '">');
  }
}

function endIeFix(){
  if(isIE()){
    document.write('</div>');
    var theObject = document.getElementById("bo_ns_id_" + bo_ns_id++);
    if(theObject.firstChild.data){
      theObject.firstChild.removeAttribute('data');
    }
    var theParams = theObject.getElementsByTagName("param");
    var theParamsLength = theParams.length;
    for (var j = 0; j < theParamsLength; j++) {
      if(theParams[j].name.toLowerCase() == 'flashvars'){
        var theFlashVars = theParams[j].value;
      }
    }
    var theInnnerHTML = theObject.innerHTML;
    var re = /<param name="FlashVars" value="">/ig;
    theInnnerHTML = theInnnerHTML.replace(re, "<param name='FlashVars' value='" + theFlashVars + "'>");
    theObject.outerHTML = theInnnerHTML;
  }
}

function isIE(){
  var strBrwsr = navigator.userAgent.toLowerCase();
  if(strBrwsr.indexOf("msie") > -1 && strBrwsr.indexOf("mac") < 0){
    return true;
  }else{
    return false;
  }
}
// /Flash Fix JS
	


function toggledisplay(id){
	show_ans=eval("ANS"+id);
	
	if (show_ans.style.display == 'none') {
		show_ans.style.display='block';
		}
	else {
		show_ans.style.display='none';
	}
}

function openPopup(id,width,height) { 
	var attrib = 'toolbar=no,status=no,scrollbars=no,location=no,menubar=no,directories=no,width=' + width + ',height=' + height;
	window.open('/easyconsole.cfm/id/'+id, 'WizzardStepPopup', attrib);
}

function goToUrl(url) {
	a=document.forms['multilingualForm'];
	lang=a.lang.value;
	window.location=url+'/lang/'+lang;
	
	
	//var var1=eval("form."+id);
	//var var2=eval(var1+"."+"options["+var1+".selectedIndex].value");
	//var var2=document.form1.lang.options[document.form1.lang.selectedIndex].value;
	
}

function toggleDetails(id) {
	var a=eval("formAlerts."+id);
	
	if (a.disabled) {
		a.disabled = false;
	} 
	else {
		a.disabled = true;
	}
}

function mv (id) {
	id.className=id.className+'Over';
}

function mo (id) {
	var myclass = id.className;
	id.className=myclass.replace("Over","");
}

function visit(id) {
	location.href='/easyconsole.cfm?id='+id;
}
function EmailPage(prog_id) { 
	window.open('/easyconsole.cfm/page/sendtofriend/prog_id/'+prog_id, 'newwindow', 'toolbar=no,status=no,scrollbars=no,location=no,menubar=no,directories=no,width=450,height=200');
}

function viewPartnerSearches(prog_id) { 
	window.open('/easyconsole.cfm/page/vps/prog_id/'+prog_id, 'vpswindow', 'toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,directories=no,width=570,height=400');
}

function ViewPhoto (image_loc,img) {
  HTML = "<html><style>body{margin:0px 0px 0px 0px}</style><body onBlur='top.close()'><img src='"+ image_loc +"' border=0 name=load_image onLoad='window.resizeTo(document.load_image.width+10,document.load_image.height+30)'></body></html>";
  popupImage = window.open('','_blank','height=200, width=300,toolbar=no,scrollbars=no');
  popupImage.document.open();
  popupImage.document.write(HTML);
  popupImage.document.close();
}

function  deletePartnerProfile(ps_id)
{
	document.forms.reclist.ps_id.value=ps_id;
	document.forms.reclist.status.value="DELPS";
	document.forms.reclist.submit();
}

function mediaPopup(id,filename,filetype,width,height) {		
	if (!filetype) filetype='swf';
	
	if (filetype=='swf' || filetype=='wmv' || filetype=='avi')
	{
		if (!width) width=320;
		if (!height) height=240;
		
		width=eval(width+20);		
		if (filetype=='wmv')
		{
			height=eval(height+90);		
		}
		else
		{
			height=eval(height+90);
		}
		window.open('/easyconsole.cfm/page/mediaviewer/id/'+id, "movieWin", "width="+width+", height="+height+" ")
	}
	else
	{
		width=360;
		height=140;		
	
		var str = new String("popup1/" +id);
		window.open('/easyconsole.cfm/page/mediaviewer/id/'+id,"mp3Player", "status=yes,location=no,reload=yes,resizable=yes,scrollbars=yes,width="+width+",height="+height+"\"")		
	}
}


function openComposer (type,id,pathinfo) {
	window.open('/easyconsole.cfm?print=1&page=forumcomposer&type='+type+'&id='+id+'&pathinfo='+pathinfo,'Composer','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no, width=800,height=450,left=430,top=300');
}
