function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}
/* Functions that swaps images. */
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

/* Functions that handle preload. */
function MM_preloadImages() { //v3.0
 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
   var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
   if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MM_setTextOfLayer(objName,x,newText) { //v3.0
  if ((obj=MM_findObj(objName))!=null) with (obj)
    if (navigator.appName=='Netscape') {document.write(unescape(newText)); document.close();}
    else innerHTML = unescape(newText);
}

function Login(url,pop_name) {
	theWin = window.open(url,pop_name,'width=750,height=475,resizable=no,scrollbars=yes,menubar=no,toolbar=no,directories=no,location=no,status=yes');
}

function DownloadPopup(url,pop_name) {
	theWin = window.open(url,pop_name,'width=750,height=536,resizable=no,scrollbars=yes,menubar=no,toolbar=no,directories=no,location=no,status=yes');
}
function PreviewMSP(url,pop_name) {
	theWin = window.open(url,pop_name,'width=500,height=500,resizable=no,scrollbars=yes,menubar=no,toolbar=no,directories=no,location=no,status=yes');
}
	
function ContactVisit4ads(url,pop_name) {
	theWin = window.open(url,pop_name,'width=500,height=450,resizable=no,scrollbars=yes,menubar=no,toolbar=no,directories=no,location=no,status=yes');
}

function cam_ads(url,pop_name) {
	theWin = window.open(url,pop_name,'width=800,height=540,resizable=yes,scrollbars=yes,menubar=no,toolbar=no,directories=no,location=no,status=yes');
}
function top_ads(url,pop_name) {
	theWin = window.open(url,pop_name,'width=840,height=500,resizable=no,scrollbars=yes,menubar=no,toolbar=no,directories=no,location=no,status=yes');
}
function ad_still(url,pop_name) {
	theWin = window.open(url,pop_name,'width=160,height=160,resizable=no,scrollbars=yes,menubar=no,toolbar=no,directories=no,location=no,status=yes');
}
function ad_download_help(url,pop_name) {
	theWin = window.open(url,pop_name,'width=250,height=160,resizable=no,scrollbars=yes,menubar=no,toolbar=no,directories=no,location=no,status=yes');
}


function reset_date() {
	document.forms.search.search_dateRange.value = '';
	document.forms.search.df_d.value = '';
	document.forms.search.df_m.value = '';
	document.forms.search.df_y.value = '';
	document.forms.search.dt_d.value = '';
	document.forms.search.dt_m.value = '';
	document.forms.search.dt_y.value = '';
}
function reset_all() {
	document.forms.search.search_brand.value = '';
	document.forms.search.search_brand.value = '';
	document.forms.search.search_prod_type.value = '';
	document.forms.search.search_category.value = '';
	document.forms.search.search_keywords.value = '';
	document.forms.search.search_adtype.value = '';
	document.forms.search.search_cool.value = '';
	document.forms.search.search_classic.value = '';
	document.forms.search.search_actors.value = '';
	document.forms.search.search_musicians.value = '';
	document.forms.search.search_songs.value = '';
	document.forms.search.search_celeb.value = '';
	document.forms.search.search_agency.value = '';
	document.forms.search.search_country.value = '';
	document.forms.search.search_production.value = '';
	document.forms.search.search_creatives.value = '';
	document.forms.search.search_campaign.value = '';
	document.forms.search.search_dateRange.value = '';
	document.forms.search.search_filmlocation.value = '';
	document.forms.search.df_d.value = '';
	document.forms.search.df_m.value = '';
	document.forms.search.df_y.value = '';
	document.forms.search.dt_d.value = '';
	document.forms.search.dt_m.value = '';
	document.forms.search.dt_y.value = '';
}
function select_info(url,pop_name) {
	theWin = window.open(url,pop_name,'width=400,height=300,resizable=no,scrollbars=yes,menubar=no,toolbar=no,directories=no,location=no,status=yes');
}
function explain_search() {
	theWin = window.open('/search/explain_search.html','explain','width=400,height=190,resizable=no,scrollbars=yes,menubar=no,toolbar=no,directories=no,location=no,status=yes');
}
function explain_search_keywords() {
	theWin = window.open('/search/explain_search.html#keyword','explain','width=400,height=230,resizable=no,scrollbars=yes,menubar=no,toolbar=no,directories=no,location=no,status=yes');
}


 function win_popup(url,name,width,height,center,resize,scroll,posleft,postop) {
    if (posleft != 0) { x = posleft }
    if (postop  != 0) { y = postop  }

    if (!scroll) { scroll = 1 }
    if (!resize) { resize = 1 }

    if ((parseInt (navigator.appVersion) >= 4 ) && (center)) {
      X = (screen.width  - width ) / 2;
      Y = (screen.height - height) / 2;
    }
    if (scroll != 0) { scroll = 1 }

    var Win = window.open( url, name, 'width='+width+',height='+height+',top='+Y+',left='+X+',resizable='+resize+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no');
	}


function show_div(d) {
  var Obj=document.getElementById(d);
	if (Obj.style.display == "") {
	  Obj.style.display="none";
	  } else {
	   Obj.style.display="";
	  }
}

function hide_div(d) {
  var Obj=document.getElementById(d);
  Obj.style.display="none";
}

function showCCVHelp() {
  var Obj=document.getElementById("ccv");
  Obj.style.display="";
}


function switch_links(chart,period) {
	p_text = document.getElementById(chart + "p");
	w_link = document.getElementById(chart + "w");
	m_link = document.getElementById(chart + "m");
	y_link = document.getElementById(chart + "y");
	a_link = document.getElementById(chart + "a");
	
	switch (period) {
	case "w":
		if (p_text) { p_text.innerHTML = "this week ";}
		if (w_link) { w_link.style.display="none";}
		if (m_link) { m_link.style.display="";}
		if (y_link) { y_link.style.display="";}
		if (a_link) { a_link.style.display="";}
		break;
	case "m":
		if (p_text) { p_text.innerHTML = "this month "; }
		if (w_link) { w_link.style.display="";}
		if (m_link) { m_link.style.display="none";}
		if (y_link) { y_link.style.display="";}
		if (a_link) { a_link.style.display="";}
		break;
	case "y":
		if (p_text) { p_text.innerHTML = "this year ";}
		if (w_link) { w_link.style.display="";}
		if (m_link) { m_link.style.display="";}
		if (y_link) { y_link.style.display="none";}
		if (a_link) { a_link.style.display="";}
		break;
	case "a":
		if (p_text) { p_text.innerHTML = "of all time ";}
		if (w_link) { w_link.style.display="";}
		if (m_link) { m_link.style.display="";}
		if (y_link) { y_link.style.display="";}
		if (a_link) { a_link.style.display="none";}
	}
}


function play_ad(id) {
	var this_version= "";
	x = document.getElementById('playform');

	for (var i=0; i < x.play_version.length; i++)
{
		if (x.play_version[i].checked)
		{
			this_version = x.play_version[i].value;
		}
	}
	
	
	switch (this_version) {
	case "large": 
		previewlarge()
	break;
	case "medium": 
		previewmedium()
	break;
	case "small": 
		previewsmall()
	break;
	case "1": 
		play_reload(1,id);
		break;
	case "2": 
		play_reload(2,id);
	break;
	case "5": 
		play_reload(5,id);
	break;
	case "6":
		 play_reload(6,id);
		
	break;
	default : alert("Please select a version to play");
	}

}

function play_reload(version,id) {

	var str = location.pathname;

	if (str.indexOf("static") > -1) { 
		window.self.location = location.pathname + "?" +id + "&version=" +version;	
	} else {
		window.self.location = "/visit4ads/details.cfm?adid=" +id + "&version=" +version;
	}
}

function doReload() {
var obj = document.getElementById('ads');

form_date = obj.date.options[obj.date.selectedIndex].value;
form_type = obj.type.options[obj.type.selectedIndex].value;
form_display = obj.display.options[obj.display.selectedIndex].value;
form_order = obj.order.options[obj.order.selectedIndex].value;

window.self.location = "/coolads.cfm" + '?date=' + form_date + '&type=' + form_type + '&display=' + form_display + '&order=' + form_order;
}

function doSearchReload() {
var obj = document.getElementById('ads');

form_display = obj.display.options[obj.display.selectedIndex].value;
form_order = obj.sort.options[obj.sort.selectedIndex].value;

if (obj.datedrop) {
	form_date = obj.datedrop.options[obj.datedrop.selectedIndex].value;
} else {
	form_date = '';
}

window.self.location = location.pathname + '?display=' + form_display + '&sort=' + form_order + '&datefilter=' + form_date;

}

function doChartsReload(chart,sector) {
var obj = document.getElementById('ads');

form_display = obj.display.options[obj.display.selectedIndex].value;
form_order = obj.sort.options[obj.sort.selectedIndex].value;

if (obj.datedrop) {
	form_date = obj.datedrop.options[obj.datedrop.selectedIndex].value;
} else {
	form_date = '';
}

window.self.location = "/search/charts.cfm" + '?display=' + form_display + '&sort=' + form_order + '&l=' + chart + '&s=' + sector + '&datefilter=' + form_date;

}

function left_nav(type,user) {
		
		url = "/ajax_search.cfm?search_bar=" + type +  "&random=" + Date();// create the url
	

	// Check whether to use IE http request object
    if (window.XMLHttpRequest) {
		req = new XMLHttpRequest();
    } else if (window.ActiveXObject) {
    	req = new ActiveXObject("Microsoft.XMLHTTP");
    isIE=true;
    }
	
	req.open("GET", url, true);  // open url 

	req.send(null); // clear the object
	
		s_b = document.getElementById('left_search_basic');
		s_e = document.getElementById('left_search_exp');
		s_a = document.getElementById('left_search_adv');
		s_c = document.getElementById('left_search_collections');
		s_v = document.getElementById('left_search_views');


		if (type == 'basic') {
			s_b.style.display = '';
			s_e.style.display = 'none';
			s_a.style.display = 'none';
			s_c.style.display = 'none';
			s_v.style.display = '';
			//document.getElementById('brand_text').style.display = 'none';
			document.getElementById('left_basic_a').style.display = 'none';
			document.getElementById('left_exp_a').style.display = '';
			document.getElementById('left_adv_a').style.display = '';
			document.getElementById('left_collections_a').style.display = '';
			document.getElementById('selected_search_option').innerHTML = 'Basic';
			//document.getElementById('basic_helper').style.display = '';
			document.getElementById('adv_intro').style.display = 'none';
			document.getElementById('prompted').style.display = 'none';
			theform = document.getElementById('leftsearchform');
			theform.search_prod_type.value = '';
			theform.search_category.value = '';
			//theform.search_keywords.value = '';
			theform.search_adtype.value = '';
			theform.search_cool.value = '';
			theform.search_classic.value = '';
			theform.search_actors.value = '';
			theform.search_musicians.value = '';
			theform.search_songs.value = '';
			theform.search_celeb.value = '';
			theform.search_agency.value = '';
			theform.search_country.value = '';
			theform.search_production.value = '';
			theform.search_creatives.value = '';
			theform.search_campaign.value = '';
			theform.search_dateRange.value = '';
			theform.search_filmlocation.value = '';
			theform.search_views.value = '0';
			theform.df_d.value = '';
			theform.df_m.value = '';
			theform.df_y.value = '';
			theform.dt_d.value = '';
			theform.dt_m.value = '';
			theform.dt_y.value = '';
			}
		
		if (type == 'exp') {
			s_b.style.display = '';
			s_e.style.display = '';
			s_a.style.display = 'none';
			s_c.style.display = 'none';
			s_v.style.display = '';
			//document.getElementById('brand_text').style.display = '';
			document.getElementById('left_basic_a').style.display = '';
			document.getElementById('left_exp_a').style.display = 'none';
			document.getElementById('left_adv_a').style.display = '';
			document.getElementById('left_collections_a').style.display = '';
			document.getElementById('selected_search_option').innerHTML = 'Expanded';
			//document.getElementById('basic_helper').style.display = 'none';
			document.getElementById('adv_intro').style.display = 'none';
			document.getElementById('prompted').style.display = '';
			theform = document.getElementById('leftsearchform');
			theform.search_cool.value = '';
			theform.search_classic.value = '';
			theform.search_actors.value = '';
			theform.search_musicians.value = '';
			theform.search_songs.value = '';
			theform.search_celeb.value = '';
			theform.search_agency.value = '';
			theform.search_country.value = '';
			theform.search_production.value = '';
			theform.search_creatives.value = '';
			theform.search_campaign.value = '';
			theform.search_filmlocation.value = '';
			theform.search_views.value = '0';
		}
		
		if (type == 'adv') {
			s_b.style.display = '';
			s_e.style.display = '';
			s_a.style.display = '';
			s_c.style.display = 'none';
			s_v.style.display = 'none';
			document.getElementById('prompted').style.display = '';
			//document.getElementById('brand_text').style.display = '';
			document.getElementById('left_basic_a').style.display = '';
			document.getElementById('left_exp_a').style.display = '';
			document.getElementById('left_adv_a').style.display = 'none';
			document.getElementById('left_collections_a').style.display = '';
			document.getElementById('selected_search_option').innerHTML = 'Advanced';
			//document.getElementById('basic_helper').style.display = 'none';
			document.getElementById('adv_intro').style.display = '';
			
		}
		
		if (type == 'collections') {
			s_b.style.display = 'none';
			s_e.style.display = 'none';
			s_a.style.display = 'none';
			s_c.style.display = '';
			s_v.style.display = 'none';
			document.getElementById('prompted').style.display = 'none';
			document.getElementById('adv_intro').style.display = 'none';
			//document.getElementById('brand_text').style.display = '';
			document.getElementById('left_basic_a').style.display = '';
			document.getElementById('left_exp_a').style.display = '';
			document.getElementById('left_adv_a').style.display = '';
			document.getElementById('left_collections_a').style.display = 'none';
			document.getElementById('selected_search_option').innerHTML = 'Collections';
		}
	}
	
function search_date_reset() {
	theform = document.getElementById('leftsearchform');
	theform.df_d.value = '';
	theform.df_m.value = '';
	theform.df_y.value = '';
	theform.dt_d.value = '';
	theform.dt_m.value = '';
	theform.dt_y.value = '';
}

function checksearchform() {

	theform = document.getElementById('leftsearchform');
	
	//if (theform.search_brand.value = 'Search here...') {
	//	theform.search_brand.value = '';	
	//};
	
	s1 = theform.search_brand.value;
	s2 = theform.search_prod_type.value;
	s3 = theform.search_category[theform.search_category.selectedIndex].value;
	s4 = theform.search_keywords.value;
	s5 = theform.search_adtype[theform.search_adtype.selectedIndex].value;
	s6 = theform.search_cool[theform.search_cool.selectedIndex].value;
	s7 = theform.search_classic[theform.search_classic.selectedIndex].value;
	s8 = theform.search_actors.value;
	s9 = theform.search_musicians.value;
	s10 = theform.search_songs.value;
	//s11 = theform.search_celeb[theform.search_celeb.selectedIndex].value;
	s11 = theform.search_celeb.value;
	s12 = theform.search_agency[theform.search_agency.selectedIndex].value;
	s13 = theform.search_country[theform.search_country.selectedIndex].value;
	s14 = theform.search_production.value;
	s15 = theform.search_creatives.value;
	s16 = theform.search_campaign[theform.search_campaign.selectedIndex].value;
	s17 = theform.search_dateRange[theform.search_dateRange.selectedIndex].value;
	s18 = theform.search_filmlocation.value;
	s19 = theform.df_d[theform.df_d.selectedIndex].value;
	s20 = theform.df_m[theform.df_m.selectedIndex].value;
	s21 = theform.df_y[theform.df_y.selectedIndex].value;
	s22 = theform.dt_d[theform.dt_d.selectedIndex].value;
	s23 = theform.dt_m[theform.dt_m.selectedIndex].value;
	s24 = theform.dt_y[theform.dt_y.selectedIndex].value;
	//s25 = theform.search_views[theform.search_views.selectedIndex].value;
	s25 = document.getElementById('search_views').value;
	//s25 = theform.search_views.[theform.search_views.selectedIndex].value;
	//&& s25.length == 0
		if ((s1.length == 0 || s1 == 'Search here...') && s2.length == 0
	&& s3.length == 0 && s4.length == 0
	&& s5.length == 0 && s6.length == 0
	&& s7.length == 0 && s8.length == 0
	&& s9.length == 0 && s10.length == 0
	&& s11.length == 0 && s12.length == 0
	&& s13.length == 0 && s14.length == 0
	&& s15.length == 0 && s16.length == 0
	&& s17.length == 0 && s18.length == 0
	&& s19.length == 0 && s20.length == 0
	&& s21.length == 0 && s22.length == 0
	&& s23.length == 0 && s24.length == 0 && s25.length == 0
	) {
		alert('Please enter search terms');
		return false;
	} else {
		return true;
	}
	}
	
function activate_prompt() {
	theform = document.getElementById('leftsearchform');
	
	for (var i=0; i < theform.prompt_search.length; i++) 
	{
		var rad_val = theform.prompt_search[i].value;
		if (rad_val == 1) {
			theform.prompt_search[i].checked = true;
			reset_all();
			alert('The search on the left will change to prompted when you click OK');
		}
   	}
}

function prompted_search() {
		for (var i=0; i < document.getElementById('leftsearchform').prompt_search.length; i++) {
			if (document.getElementById('leftsearchform').prompt_search[i].checked) {
				var rad_val = document.getElementById('leftsearchform').prompt_search[i].value;
				if (rad_val == 1) {
					return true;
				} else {
					return false;
			}
			}
		}
	}
	
function checkagencyform() {
	var errors = 0;
	theform = document.getElementById('agform');
	
	a1 = theform.agency_name.value;
	a2 = theform.ag_add1.value;
	a3 = theform.ag_add_city.value;
	a4 = theform.agency_type[theform.agency_type.selectedIndex].value;
	a5 = theform.ag_add_country[theform.ag_add_country.selectedIndex].value;
 	a6 = theform.ag_cont_phone.value;
 	a7 = theform.ag_url.value;
 	a8 = theform.ag_email_ext;
 	a9 = theform.ag_cont_name;
 	a10 = theform.ag_cont_email;
 	
 	if (a1 == '') {
		alert('Please enter your agency name');
		errors = 1;
		return false; 	
 	}
	
 	if (a2 == '') {
		alert('Please enter your agency address');
		errors = 1;
		return false; 	
 	}
	
 	if (a3 == '') {
		alert('Please enter your agency address city');
		errors = 1;
		return false; 	
 	}
 	if (a4 == '') {
		alert('Please enter your agency type');
		errors = 1;
		return false; 	
 	}
 	if (a5 == '') {
		alert('Please enter your agency address country');
		errors = 1;
		return false; 	
 	}
 	if (a6 == '') {
		alert('Please enter your contact telephone');
		errors = 1;
		return false; 	
 	}
 	if (a7 == '') {
		alert('Please enter your agency web site URL\nOr enter NONE');
		errors = 1;
		return false; 	
 	} else {
	 	
	    var v = new RegExp(); 
   		v.compile("^[A-Za-z]+://[A-Za-z0-9-_]+\\.[A-Za-z0-9-_%&\?\/.=]+$"); 
   	    if (!v.test(a7) && a7.toLowerCase() != 'none') { 
           alert("You must supply a valid URL."); 
        return false; }

 	}
 
 	if (a8 == '') {
		 alert('Please enter your agency email extension\neg @visit4info.com');	
		 return false;
 	} else {
	 	if (a8.value.indexOf(".") == -1 || a8.value.indexOf("@") == -1)  {
			alert('Please enter a valid agency email extension');
			errors = 1;
			return false; 	
	 	}
 	}
 	
 	if (a9 == '') {
		alert('Please enter your contact name');
		errors = 1;
		return false; 	
 	}
 	
 	if (a10 == '') {
		alert('Please enter your contact email address');
		errors = 1;
		return false; 	
 	}
 	
 	if (errors == 0) {
	 return true;	
 	}
}

function doAgIndexReload() {
var obj = document.getElementById('ads');

form_sort = obj.ag_sort.options[obj.ag_sort.selectedIndex].value;
form_type = obj.ag_type.options[obj.ag_type.selectedIndex].value;
form_country = obj.ag_country.options[obj.ag_country.selectedIndex].value;

window.self.location = "/visit4ads/agency/index.cfm" + '?ag_sort=' + form_sort + "&ag_type=" + form_type + "&ag_country=" + form_country;

}

// this function is used on the advertiser profiles pages too
function doAgencyReload(a) {
var obj = document.getElementById('ads');

form_display = obj.display.options[obj.display.selectedIndex].value;
form_order = obj.sort.options[obj.sort.selectedIndex].value;

if (obj.datedrop) {
	form_date = obj.datedrop.options[obj.datedrop.selectedIndex].value;
} else {
	form_date = '';
}

window.self.location = location.pathname + '?a=' + a + '&display=' + form_display + '&sort=' + form_order + '&datefilter=' + form_date;

}

function save_search(alert) {
	divobj = document.getElementById('save_search');
	containerobj = document.getElementById('search_bar');
	
	if (divobj.style.display == 'none') {
		divobj.style.display = '';
		containerobj.style.height = '120px';
	}
	
	if (alert == 1) {
		document.getElementById('new_set_alert').checked = 'checked';	
	} else {
		document.getElementById('new_set_alert').checked = '';	
	}
}

function cancel_alert() {
divobj = document.getElementById('save_search');
	containerobj = document.getElementById('search_bar');
		divobj.style.display = 'none';
		containerobj.style.height = '';	
}

function do_save_search() {
	search_name = document.getElementById('new_search_name').value;
	
	if (document.getElementById('new_set_alert').checked == true) {
		set_alert = 1;	
	} else {
		set_alert = 0;
	}
	
	window.self.location = 'my_searches.cfm?new_search_name=' + search_name + '&new_set_alert=' + set_alert;
}

function chkUnchkAll() {
	for(i=0; i<ads.elements.length; i++) {
		if(ads.elements[i].type == "checkbox" && ads.elements[i].name != "chkunchk")
		ads.elements[i].checked = ads.chkunchk.checked;
		}
	}
	
function mail_url() {
	theWin = window.open('/visit4ads/inbox/email_url.cfm','mailurl','width=200,height=200,resizable=no,scrollbars=yes,menubar=no,toolbar=no,directories=no,location=no,status=yes');
}

function mail_portfolio_url() {
	theWin = window.open('/visit4ads/portfolio/email_url.cfm','mailurl','width=200,height=200,resizable=no,scrollbars=yes,menubar=no,toolbar=no,directories=no,location=no,status=yes');
}
	
function inbox_password() {
	theWin = window.open('/visit4ads/inbox/inbox_password.cfm','inbox_password','width=300,height=300,resizable=no,scrollbars=yes,menubar=no,toolbar=no,directories=no,location=no,status=yes');
}
	
function play_popup_ad(url,pop_name) {
	theWin = window.open(url,pop_name,'width=500,height=340,resizable=no,scrollbars=yes,menubar=no,toolbar=no,directories=no,location=no,status=yes');
}	
	
function MemberForgotPassword(e) {
	theWin = window.open('/visit4ads/membership/forgot_password/?email=' + e,'MemberForgotPassword','width=400,height=400,resizable=no,scrollbars=no,menubar=no,toolbar=no,directories=no,location=no,status=no');
}
function auto_prompt() {
	document.getElementById('search_brand').setAttribute("autocomplete", "off");
	document.getElementById('search_prod_type').setAttribute("autocomplete","off");
	document.getElementById('search_keywords').setAttribute("autocomplete","off");
	document.getElementById('search_actors').setAttribute("autocomplete","off");
	document.getElementById('search_musicians').setAttribute("autocomplete","off");
	document.getElementById('search_songs').setAttribute("autocomplete","off");
	document.getElementById('search_celeb').setAttribute("autocomplete","off");

}