var xmlHttpc;
var boxid=0;
var y=0;
var xmlHttp;


var ffval="";



function right_login()
{ 
document.getElementById('rej').innerHTML="<img src='images/loading.gif' width='35' height='35'>";

for(var x=0;x<10000;x++){y=x;}
xmlHttpc=GetXmlHttpObjectc()
if (xmlHttpc==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 } 
var url="login_action1.php?email="+document.getElementById('email').value + "&password="+document.getElementById('password').value
url=url+"&amp;sid="+Math.random()
xmlHttpc.onreadystatechange=stateChanged123
xmlHttpc.open("GET",url,true)
xmlHttpc.send(null)
}

function stateChanged123() 
{ 
if(xmlHttpc.readyState==4 || xmlHttpc.readyState=="complete"){
if(xmlHttpc.responseText=="1")
location.href='my_account.php';
else
document.getElementById('rej').innerHTML=xmlHttpc.responseText;
}
}






function fff(v)
{ 
ffval=v;
var strf="Turning OFF the family filter lists items intended for mature audiences.\nThis content may be offensive.\nYou must be over 18 to turn off the family filter.\n Are you sure to turn off family filter?";
if(v=="off"){
if(confirm(strf)){
xmlHttpc=GetXmlHttpObjectc()
if (xmlHttpc==null)
{
alert ("Browser does not support HTTP Request")
return
} 
var url="header.php?fff="+v
url=url+"&amp;sid="+Math.random()
xmlHttpc.onreadystatechange=stateChanged12
xmlHttpc.open("GET",url,true)
xmlHttpc.send(null)
}
}
else
{
xmlHttpc=GetXmlHttpObjectc()
if (xmlHttpc==null)
{
alert ("Browser does not support HTTP Request")
return
} 
var url="header.php?fff="+v
url=url+"&amp;sid="+Math.random()
xmlHttpc.onreadystatechange=stateChanged12
xmlHttpc.open("GET",url,true)
xmlHttpc.send(null)
}
}

function stateChanged12() 
{	
	if(ffval=="off")
	document.getElementById('fff').innerHTML="Family Filter: <a href=javascript:fff('on') style='color:red;text-decoration:none'>Off</a>";
	if(ffval=="on")
	document.getElementById('fff').innerHTML="Family Filter: <a href=javascript:fff('off') style='color:red;text-decoration:none'>On</a>";
}

function all_sim_ser()
{
boxid="right_wrap";
query="sim="+document.getElementById('key').value;
document.getElementById(boxid).innerHTML="<center><img src='images/loading.gif' width='35' height='35'></center>";
xmlHttpc=GetXmlHttpObjectc()
if (xmlHttpc==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 } 
 
if(document.getElementById('sel').value==9)
var url="directory_list_all.php?"+query
if(document.getElementById('sel').value==2)
var url="event_list_all.php?"+query
if(document.getElementById('sel').value==10)
var url="org_list_all.php?"+query
if(document.getElementById('sel').value==20)
var url="magazine_list_all.php?"+query
if(document.getElementById('sel').value==19)
var url="network_list_all.php?"+query
if(document.getElementById('sel').value==11)
var url="casting_list_all.php?"+query
if(document.getElementById('sel').value==3)
var url="coming_list_all.php?"+query
if(document.getElementById('sel').value==17)
var url="resume_list_all.php?"+query
if(document.getElementById('sel').value==5)
var url="equipment_list_all.php?"+query
if(document.getElementById('sel').value==1)
var url="film_list_all.php?"+query
if(document.getElementById('sel').value==6)
var url="job_list_all.php?"+query
if(document.getElementById('sel').value==4)
var url="location_list_all.php?"+query
if(document.getElementById('sel').value==12)
var url="project_list_all.php?"+query
if(document.getElementById('sel').value==7)
var url="script_list_all.php?"+query
if(document.getElementById('sel').value==8)
var url="service_list_all.php?"+query
if(document.getElementById('sel').value==18)
var url="event_report_list_all.php?"+query

url=url+"&amp;sid="+Math.random()
xmlHttpc.onreadystatechange=stateChanged_page_wise
xmlHttpc.open("GET",url,true)
xmlHttpc.send(null)	
}



function now_go()
{
boxid="right_wrap";
document.getElementById(boxid).innerHTML="<center><img src='images/loading.gif' width='35' height='35'></center>";
xmlHttpc=GetXmlHttpObjectc();
if (xmlHttpc==null)
{
alert ("Browser does not support HTTP Request");
return;
} 

query="";
query="lst=1&day="+document.getElementById("lstdays").value;
if(document.getElementById('cat').value==1)
var url="film_list_all.php?"+query;
if(document.getElementById('cat').value==2)
var url="event_list_all.php?"+query;
if(document.getElementById('cat').value==3)
var url="coming_list_all.php?"+query;
if(document.getElementById('cat').value==4)
var url="location_list_all.php?"+query;
if(document.getElementById('cat').value==5)
var url="equipment_list_all.php?"+query;
if(document.getElementById('cat').value==6)
var url="job_list_all.php?"+query;
if(document.getElementById('cat').value==7)
var url="script_list_all.php?"+query;
if(document.getElementById('cat').value==8)
var url="service_list_all.php?"+query;
if(document.getElementById('cat').value==9)
var url="directory_list_all.php?"+query;
if(document.getElementById('cat').value==10)
var url="org_list_all.php?"+query;
if(document.getElementById('cat').value==11)
var url="casting_list_all.php?"+query;
if(document.getElementById('cat').value==17)
var url="resume_list_all.php?"+query;
if(document.getElementById('cat').value==18)
var url="magazine_list_all.php?"+query;
if(document.getElementById('cat').value==19)
var url="event_report_list_all.php?"+query;
if(document.getElementById('cat').value==20)
var url="network_list_all.php?"+query;
url=url+"&amp;sid="+Math.random();
xmlHttpc.onreadystatechange=stateChanged_page_wise;
xmlHttpc.open("GET",url,true);
xmlHttpc.send(null)	;
}



function check_login()
{ 
if(document.form1.email.value=="")
{
alert("Please enter email and password");
return false;
}
}


function show_page(id,bid)
{ 

if(document.getElementById('leftdiv'))
document.getElementById('leftdiv').style.display="";
if(document.getElementById('innerbg'))
document.getElementById('innerbg').style.width="300px";

if(document.getElementById('netleft'))
{
document.getElementById('netleft').style.display="none";
document.getElementById('leftdiv').style.display="";

}


document.getElementById('sec').value=id;
boxid=bid;
document.getElementById(boxid).innerHTML="<center><img src='images/loading.gif' width='35' height='35'></center>";
xmlHttpc=GetXmlHttpObjectc()
if (xmlHttpc==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 } 
var url="show_page.php?id="+id
url=url+"&amp;sid="+Math.random()
xmlHttpc.onreadystatechange=stateChanged
xmlHttpc.open("GET",url,true)
xmlHttpc.send(null)
}


function show_page_forum(id,bid,val)
{ 

if(document.getElementById('leftdiv'))
document.getElementById('leftdiv').style.display="";
if(document.getElementById('innerbg'))
document.getElementById('innerbg').style.width="300px";

document.getElementById('sec').value=id;
boxid=bid;
document.getElementById(boxid).innerHTML="<center><img src='images/loading.gif' width='35' height='35'></center>";
xmlHttpc=GetXmlHttpObjectc()
if (xmlHttpc==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 } 
var url="forum_topic_list.php?headingid="+ val + "&id="+id
url=url+"&amp;sid="+Math.random()
xmlHttpc.onreadystatechange=stateChanged
xmlHttpc.open("GET",url,true)
xmlHttpc.send(null)
}







function _search1()
{
var str="s=1";

if(document.net.fname1.value!="")
query=query+"&fname="+document.net.fname1.value;
if(document.net.country1.value!=0)
query=query+"&country="+document.net.country1.value;
if(document.net.state1.value!="")
query=query+"&state="+document.net.state1.value;
if(document.net.gender1.value!="")
query=query+"&gender="+document.net.gender1.value;
if(document.net.highschool1.value!="")
query=query+"&highschool="+document.net.highschool.value;
if(document.net.prof1.value!="")
query=query+"&prof="+document.net.profl.value;

boxid="right_wrap";
xmlHttpc=GetXmlHttpObjectc()
if (xmlHttpc==null)
{
alert ("Browser does not support HTTP Request")
return
} 
var url="network_list_all.php?"+str;
url=url+"&amp;sid="+Math.random()
xmlHttpc.onreadystatechange=stateChanged_page_wise
xmlHttpc.open("GET",url,true)
xmlHttpc.send(null)	  
}


function stateChanged() 
{ 
if(xmlHttpc.readyState==4 || xmlHttpc.readyState=="complete"){
 document.getElementById(boxid).innerHTML=xmlHttpc.responseText;
}
}



function join_to_group(grid)
{
xmlHttpc=GetXmlHttpObjectc()
if (xmlHttpc==null)
{
alert ("Browser does not support HTTP Request")
return
} 
var url="join_to_group.php?grid="+grid;
url=url+"&amp;sid="+Math.random()
xmlHttpc.onreadystatechange=stateChangedGroup
xmlHttpc.open("GET",url,true)
xmlHttpc.send(null)	  
}


function stateChangedGroup() 
{ 
if(xmlHttpc.readyState==4 || xmlHttpc.readyState=="complete"){
 alert("Your request to join this group has been sent succesfully!");
}
}




var query="&go=100";
function go_page_wise(page,bid)
{ 
boxid="datalist";

if(document.getElementById('sec').value=="image_gal"){
boxid="big_d";
query=query+"&id="+document.getElementById('aid').value;
query=query+"&type="+document.getElementById('atype').value;
}
document.getElementById(boxid).innerHTML="<center><img src='images/loading.gif' width='35' height='35'></center>";
for(var x=0;x<10000;x++){y=x;}
xmlHttpc=GetXmlHttpObjectc()
if (xmlHttpc==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 } 
if(document.getElementById('sec').value=="magazine")
var url="magazine_list_all_ajax.php?CurrentPage="+page+"&"+query
if(document.getElementById('sec').value=="directory")
var url="directory_list_all_ajax.php?CurrentPage="+page+"&"+query
if(document.getElementById('sec').value=="org")
var url="org_list_all_ajax.php?CurrentPage="+page+"&"+query
if(document.getElementById('sec').value=="event")
var url="event_list_all_ajax.php?CurrentPage="+page+"&"+query
if(document.getElementById('sec').value=="network")
var url="network_list_all_ajax.php?CurrentPage="+page+"&"+query
if(document.getElementById('sec').value=="casting")
var url="casting_list_all_ajax.php?CurrentPage="+page+"&"+query
if(document.getElementById('sec').value=="coming")
var url="coming_list_all_ajax.php?CurrentPage="+page+"&"+query
if(document.getElementById('sec').value=="resume")
var url="resume_list_all_ajax.php?CurrentPage="+page+"&"+query
if(document.getElementById('sec').value=="equipment")
var url="equipment_list_all_ajax.php?CurrentPage="+page+"&"+query
if(document.getElementById('sec').value=="film")
var url="film_list_all_ajax.php?CurrentPage="+page+"&"+query
if(document.getElementById('sec').value=="job")
var url="job_list_all_ajax.php?CurrentPage="+page+"&"+query
if(document.getElementById('sec').value=="location")
var url="location_list_all_ajax.php?CurrentPage="+page+"&"+query
if(document.getElementById('sec').value=="project")
var url="project_list_all_ajax.php?CurrentPage="+page+"&"+query
if(document.getElementById('sec').value=="script")
var url="script_list_all_ajax.php?CurrentPage="+page+"&"+query
if(document.getElementById('sec').value=="service")
var url="service_list_all_ajax.php?CurrentPage="+page+"&"+query
if(document.getElementById('sec').value=="report")
var url="event_report_list_all_ajax.php?CurrentPage="+page+"&"+query
if(document.getElementById('sec').value=="help")
var url="help_ajax.php?CurrentPage="+page+"&"+query
if(document.getElementById('sec').value=="group")
var url="browse_group_ajax.php?CurrentPage="+page+"&"+query
if(document.getElementById('sec').value=="forum")
var url="forum_list_all_ajax.php?CurrentPage="+page+"&"+query
if(document.getElementById('sec').value=="image_gal")
var url="all_images_ajax.php?CurrentPage="+page+"&"+query;
if(document.getElementById('sec').value=="hotline")
var url="hot_line_ajax.php?CurrentPage="+page+"&"+query;

url=url+"&amp;sid="+Math.random()
xmlHttpc.onreadystatechange=stateChanged_page_wise
xmlHttpc.open("GET",url,true)
xmlHttpc.send(null)
}


function go_letter_wise(letter)
{ 
boxid="datalist";
document.getElementById(boxid).innerHTML="<center><img src='images/loading.gif' width='35' height='35'></center>";
query="";
query=query+"&Letter="+letter;
for(var x=0;x<10000;x++){y=x;}
xmlHttpc=GetXmlHttpObjectc()
if (xmlHttpc==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 } 
if(document.getElementById('sec').value=="magazine")
var url="magazine_list_all_ajax.php?"+query
if(document.getElementById('sec').value=="directory")
var url="directory_list_all_ajax.php?"+query
if(document.getElementById('sec').value=="org")
var url="org_list_all_ajax.php?"+query
if(document.getElementById('sec').value=="event")
var url="event_list_all_ajax.php?"+query
if(document.getElementById('sec').value=="network")
var url="network_list_all_ajax.php?"+query
if(document.getElementById('sec').value=="casting")
var url="casting_list_all_ajax.php?"+query
if(document.getElementById('sec').value=="coming")
var url="coming_list_all_ajax.php?"+query
if(document.getElementById('sec').value=="resume")
var url="resume_list_all_ajax.php?"+query
if(document.getElementById('sec').value=="equipment")
var url="equipment_list_all_ajax.php?"+query
if(document.getElementById('sec').value=="film")
var url="film_list_all_ajax.php?"+query
if(document.getElementById('sec').value=="job")
var url="job_list_all_ajax.php?"+query
if(document.getElementById('sec').value=="location")
var url="location_list_all_ajax.php?"+query
if(document.getElementById('sec').value=="project")
var url="project_list_all_ajax.php?"+query
if(document.getElementById('sec').value=="script")
var url="script_list_all_ajax.php?"+query
if(document.getElementById('sec').value=="service")
var url="service_list_all_ajax.php?"+query
if(document.getElementById('sec').value=="report")
var url="event_report_list_all_ajax.php?"+query
if(document.getElementById('sec').value=="group")
var url="browse_group_ajax.php?"+query
if(document.getElementById('sec').value=="forum")
var url="forum_list_all_ajax.php?"+query
if(document.getElementById('sec').value=="hotline")
var url="hot_line_ajax.php?"+query


url=url+"&amp;sid="+Math.random()
xmlHttpc.onreadystatechange=stateChanged_page_wise
xmlHttpc.open("GET",url,true)
xmlHttpc.send(null)
}


function favorite(itemid,section,heading,itemlink,temp)
{ 
xmlHttpc=GetXmlHttpObjectc()
if (xmlHttpc==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 } 
var url="add_to_favorite.php?itemid="+itemid+"&section="+section+"&heading="+heading+"&itemlink="+itemlink
url=url+"&amp;sid="+Math.random()
xmlHttpc.onreadystatechange=stateChangedfavorite
xmlHttpc.open("GET",url,true)
xmlHttpc.send(null)
}

function stateChangedfavorite() 
{ 
if(xmlHttpc.readyState==4 || xmlHttpc.readyState=="complete")
 alert(xmlHttpc.responseText);
}


////////////////////directory///////////

function dir_ser(v)
{
if(document.getElementById('companyname').value!="")
query=query+"&companyname="+document.getElementById('companyname').value;
if(document.getElementById('country').value!=0)
query=query+"&country="+document.getElementById('country').value;
if(document.getElementById('city').value!="")
query=query+"&city="+document.getElementById('city').value;
if(document.getElementById('comstates').value!=0)
query=query+"&state="+document.getElementById('comstates').value;
if(document.getElementById('category').value!=0)
query=query+"&category="+document.getElementById('category').value;
if(v==1)
boxid="datalist";
else
boxid="right_wrap";
document.getElementById(boxid).innerHTML="<center><img src='images/loading.gif' width='35' height='35'></center>";
xmlHttpc=GetXmlHttpObjectc()
if (xmlHttpc==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 } 
if(v==1)
var url="directory_list_all_ajax.php?"+query
else
var url="directory_list_all.php?"+query
url=url+"&amp;sid="+Math.random()
xmlHttpc.onreadystatechange=stateChanged_page_wise
xmlHttpc.open("GET",url,true)
xmlHttpc.send(null)
}


function sim_ser()
{
if(document.getElementById('sim').value!="")
query=query+"&sim="+document.getElementById('sim').value;
boxid="datalist";
document.getElementById(boxid).innerHTML="<center><img src='images/loading.gif' width='35' height='35'></center>";
xmlHttpc=GetXmlHttpObjectc()
if (xmlHttpc==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 } 
var url="directory_list_all_ajax.php?"+query
url=url+"&amp;sid="+Math.random()
xmlHttpc.onreadystatechange=stateChanged_page_wise
xmlHttpc.open("GET",url,true)
xmlHttpc.send(null)
}


function help_sim_ser()
{
if(document.getElementById('sim').value!="")
query=query+"&sim="+document.getElementById('sim').value;
boxid="datalist";
document.getElementById(boxid).innerHTML="<center><img src='images/loading.gif' width='35' height='35'></center>";
xmlHttpc=GetXmlHttpObjectc()
if (xmlHttpc==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 } 
var url="help_ajax.php?"+query
url=url+"&amp;sid="+Math.random()
xmlHttpc.onreadystatechange=stateChanged_page_wise
xmlHttpc.open("GET",url,true)
xmlHttpc.send(null)
}
///////////////////////////////////////



////////////////////location///////////

function loc_adv_ser(v)
{

if(document.getElementById('loc_country').value!=0)
query=query+"&loc_country="+document.getElementById('loc_country').value;
if(document.getElementById('loc_name').value!="")
query=query+"&loc_name="+document.getElementById('loc_name').value;
if(document.getElementById('loc_category').value!=0)
query=query+"&loc_category="+document.getElementById('loc_category').value;
if(document.getElementById('locstates').value!=0)
query=query+"&loc_state="+document.getElementById('locstates').value;
if(document.getElementById('loc_city').value!="")
query=query+"&loc_city="+document.getElementById('loc_city').value;
if(v==1)
boxid="datalist";
else
boxid="right_wrap";
document.getElementById(boxid).innerHTML="<center><img src='images/loading.gif' width='35' height='35'></center>";
xmlHttpc=GetXmlHttpObjectc()
if (xmlHttpc==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 } 
 if(v==1)
var url="location_list_all_ajax.php?"+query
else
var url="location_list_all.php?"+query

url=url+"&amp;sid="+Math.random()
xmlHttpc.onreadystatechange=stateChanged_page_wise
xmlHttpc.open("GET",url,true)
xmlHttpc.send(null)
}


function loc_sim_ser()
{
if(document.getElementById('sim').value!="")
query=query+"&sim="+document.getElementById('sim').value;
boxid="datalist";
document.getElementById(boxid).innerHTML="<center><img src='images/loading.gif' width='35' height='35'></center>";
xmlHttpc=GetXmlHttpObjectc()
if (xmlHttpc==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 } 
var url="location_list_all_ajax.php?"+query
url=url+"&amp;sid="+Math.random()
xmlHttpc.onreadystatechange=stateChanged_page_wise
xmlHttpc.open("GET",url,true)
xmlHttpc.send(null)
}
///////////////////////////////////////


function go_s()
{
if(document.getElementById('sim').value!="")
query=query+"&sim="+document.getElementById('sim').value;
boxid="datalist";
document.getElementById(boxid).innerHTML="<center><img src='images/loading.gif' width='35' height='35'></center>";
xmlHttpc=GetXmlHttpObjectc()
if (xmlHttpc==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 } 
var url="forum_list_all_ajax.php?"+query
url=url+"&amp;sid="+Math.random()
xmlHttpc.onreadystatechange=stateChanged_page_wise
xmlHttpc.open("GET",url,true)
xmlHttpc.send(null)	
}


/////////////////////////Group///////////////////

function grp_adv_ser(v)
{

if(document.getElementById('gname').value!="")
query=query+"&gname="+document.getElementById('gname').value;
if(document.getElementById('gcat').value!="")
query=query+"&gcat="+document.getElementById('gcat').value;
if(document.getElementById('gcountry').value!="9999")
query=query+"&gcountry="+document.getElementById('gcountry').value;
if(document.getElementById('gcity').value!="")
query=query+"&gcity="+document.getElementById('gcity').value;

if(v==1)
boxid="datalist";
else
boxid="right_wrap";
document.getElementById(boxid).innerHTML="<center><img src='images/loading.gif' width='35' height='35'></center>";
xmlHttpc=GetXmlHttpObjectc()
if (xmlHttpc==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 } 
 if(v==1)
var url="browse_group_ajax.php?"+query
else
var url="browse_group_ajax.php?"+query

url=url+"&amp;sid="+Math.random()
xmlHttpc.onreadystatechange=stateChanged_page_wise
xmlHttpc.open("GET",url,true)
xmlHttpc.send(null)
}


function grp_sim_ser()
{
if(document.getElementById('sim').value!="")
query=query+"&sim="+document.getElementById('sim').value;
boxid="datalist";
document.getElementById(boxid).innerHTML="<center><img src='images/loading.gif' width='35' height='35'></center>";
xmlHttpc=GetXmlHttpObjectc()
if (xmlHttpc==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 } 
var url="browse_group_ajax.php?"+query
url=url+"&amp;sid="+Math.random()
xmlHttpc.onreadystatechange=stateChanged_page_wise
xmlHttpc.open("GET",url,true)
xmlHttpc.send(null)
}


////////////////////////////////////




////////////////////script///////////

function scr_adv_ser(v)
{
if(document.getElementById('stype').value!=0)
query=query+"&stype="+document.getElementById('stype').value;
if(document.getElementById('sheading').value!="")
query=query+"&sheading="+document.getElementById('sheading').value;
if(document.getElementById('slanguage').value!=0)
query=query+"&slanguage="+document.getElementById('slanguage').value;
if(document.getElementById('sgenre').value!=0)
query=query+"&sgenre="+document.getElementById('sgenre').value;
if(document.getElementById('scountry').value!=0)
query=query+"&scountry="+document.getElementById('scountry').value;
if(v==1)
boxid="datalist";
else
boxid="right_wrap";
document.getElementById(boxid).innerHTML="<center><img src='images/loading.gif' width='35' height='35'></center>";
xmlHttpc=GetXmlHttpObjectc()
if (xmlHttpc==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 } 
 if(v==1)
var url="script_list_all_ajax.php?"+query
else
var url="script_list_all.php?"+query
url=url+"&amp;sid="+Math.random()
xmlHttpc.onreadystatechange=stateChanged_page_wise
xmlHttpc.open("GET",url,true)
xmlHttpc.send(null)
}


function scr_sim_ser()
{
if(document.getElementById('sim').value!="")
query=query+"&sim="+document.getElementById('sim').value;
boxid="datalist";
document.getElementById(boxid).innerHTML="<center><img src='images/loading.gif' width='35' height='35'></center>";
xmlHttpc=GetXmlHttpObjectc()
if (xmlHttpc==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 } 
var url="script_list_all_ajax.php?"+query
url=url+"&amp;sid="+Math.random()
xmlHttpc.onreadystatechange=stateChanged_page_wise
xmlHttpc.open("GET",url,true)
xmlHttpc.send(null)
}
///////////////////////////////////////




////////////////////service///////////

function ser_adv_ser(v)
{
if(document.getElementById('provider').value!=0)
query=query+"&provider="+document.getElementById('provider').value;
if(document.getElementById('crewheading').value!="")
query=query+"&crewheading="+document.getElementById('crewheading').value;
if(document.getElementById('cr_production').value!=0)
query=query+"&cr_production="+document.getElementById('cr_production').value;
if(document.getElementById('crewcountry').value!="")
query=query+"&country="+document.getElementById('crewcountry').value;
if(v==1)
boxid="datalist";
else
boxid="right_wrap";
document.getElementById(boxid).innerHTML="<center><img src='images/loading.gif' width='35' height='35'></center>";
xmlHttpc=GetXmlHttpObjectc()
if (xmlHttpc==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 } 
 if(v==1)
var url="service_list_all_ajax.php?"+query
else
var url="service_list_all.php?"+query
url=url+"&amp;sid="+Math.random()
xmlHttpc.onreadystatechange=stateChanged_page_wise
xmlHttpc.open("GET",url,true)
xmlHttpc.send(null)
}


function ser_sim_ser()
{
if(document.getElementById('sim').value!="")
query=query+"&sim="+document.getElementById('sim').value;
boxid="datalist";
document.getElementById(boxid).innerHTML="<center><img src='images/loading.gif' width='35' height='35'></center>";
xmlHttpc=GetXmlHttpObjectc()
if (xmlHttpc==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 } 
var url="service_list_all_ajax.php?"+query
url=url+"&amp;sid="+Math.random()
xmlHttpc.onreadystatechange=stateChanged_page_wise
xmlHttpc.open("GET",url,true)
xmlHttpc.send(null)
}
///////////////////////////////////////




////////////////////location///////////

function pro_adv_ser(v)
{
if(document.getElementById('project_name').value!="")
query=query+"&project_name="+document.getElementById('project_name').value;
if(document.getElementById('country').value!=0)
query=query+"&country="+document.getElementById('country').value;
if(document.getElementById('project_type').value!=0)
query=query+"&project_type="+document.getElementById('project_type').value;
if(document.getElementById('age').value!=0)
query=query+"&age="+document.getElementById('age').value;
if(document.getElementById('language').value!=0)
query=query+"&language="+document.getElementById('language').value;
if(document.getElementById('u1').checked==true)
query=query+"&union="+document.getElementById('u1').value;
if(document.getElementById('u2').checked==true)
query=query+"&union="+document.getElementById('u2').value;
if(document.getElementById('p1').checked==true)
query=query+"&pay="+document.getElementById('p1').value;
if(document.getElementById('p2').checked==true)
query=query+"&pay="+document.getElementById('p2').value;
if(document.getElementById('p3').checked==true)
query=query+"&pay="+document.getElementById('p3').value;
if(v==1)
boxid="datalist";
else
boxid="right_wrap";
document.getElementById(boxid).innerHTML="<center><img src='images/loading.gif' width='35' height='35'></center>";
xmlHttpc=GetXmlHttpObjectc()
if (xmlHttpc==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 } 
 if(v==1)
var url="project_list_all_ajax.php?"+query
else
var url="project_list_all.php?"+query
url=url+"&amp;sid="+Math.random()
xmlHttpc.onreadystatechange=stateChanged_page_wise
xmlHttpc.open("GET",url,true)
xmlHttpc.send(null)
}


function pro_sim_ser()
{
if(document.getElementById('sim').value!="")
query=query+"&sim="+document.getElementById('sim').value;
boxid="datalist";
document.getElementById(boxid).innerHTML="<center><img src='images/loading.gif' width='35' height='35'></center>";
xmlHttpc=GetXmlHttpObjectc()
if (xmlHttpc==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 } 
var url="project_list_all_ajax.php?"+query
url=url+"&amp;sid="+Math.random()
xmlHttpc.onreadystatechange=stateChanged_page_wise
xmlHttpc.open("GET",url,true)
xmlHttpc.send(null)
}
///////////////////////////////////////





////////////////////equipment///////////

function equ_adv_ser(v)
{
query="";
if(document.getElementById('atype').value!=0)
query=query+"&atype="+document.getElementById('atype').value;
if(document.getElementById('acountry').value!=0)
query=query+"&acountry="+document.getElementById('acountry').value;
if(document.getElementById('aname').value!="")
query=query+"&aname="+document.getElementById('aname').value;
if(document.getElementById('main_cat').value!=0)
query=query+"&main_cat="+document.getElementById('main_cat').value;
if(document.getElementById('type').value!=0)
query=query+"&type="+document.getElementById('type').value;
if(document.getElementById('subcat1').value!=0 && document.getElementById('subcat1').value!="")
query=query+"&subcat1="+document.getElementById('subcat1').value;
if(document.getElementById('subcat2').value!=0 && document.getElementById('subcat2').value!="")
query=query+"&subcat2="+document.getElementById('subcat2').value;
if(document.getElementById('subcat3').value!=0 && document.getElementById('subcat3').value!="")
query=query+"&subcat3="+document.getElementById('subcat3').value;
if(document.getElementById('subcat4').value!=0 && document.getElementById('subcat4').value!="")
query=query+"&subcat4="+document.getElementById('subcat4').value;
if(document.getElementById('subcat5').value!=0 && document.getElementById('subcat5').value!="")
query=query+"&subcat5="+document.getElementById('subcat5').value;
if(document.getElementById('accessstates').value!=0)
query=query+"&state="+document.getElementById('accessstates').value;

if(v==1)
boxid="datalist";
else
boxid="right_wrap";
document.getElementById(boxid).innerHTML="<center><img src='images/loading.gif' width='35' height='35'></center>";
xmlHttpc=GetXmlHttpObjectc()
if (xmlHttpc==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 } 
if(v==1)
var url="equipment_list_all_ajax.php?"+query
else
var url="equipment_list_all.php?"+query
url=url+"&amp;sid="+Math.random()
xmlHttpc.onreadystatechange=stateChanged_page_wise
xmlHttpc.open("GET",url,true)
xmlHttpc.send(null)
}


function equ_sim_ser()
{
query="";
if(document.getElementById('sim').value!="")
query=query+"&sim="+document.getElementById('sim').value;
boxid="datalist";
document.getElementById(boxid).innerHTML="<center><img src='images/loading.gif' width='35' height='35'></center>";
xmlHttpc=GetXmlHttpObjectc()
if (xmlHttpc==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 } 
var url="equipment_list_all_ajax.php?"+query
url=url+"&amp;sid="+Math.random()
xmlHttpc.onreadystatechange=stateChanged_page_wise
xmlHttpc.open("GET",url,true)
xmlHttpc.send(null)
}
///////////////////////////////////////



////////////////////directory///////////

function job_adv_ser(v)
{
query="";
if(document.getElementById('job_location').value!="")
query=query+"&job_location="+document.getElementById('job_location').value;
if(document.getElementById('job_type').value!=0)
query=query+"&job_type="+document.getElementById('job_type').value;
if(document.getElementById('job_exp').value!=0)
query=query+"&job_exp="+document.getElementById('job_exp').value;
if(document.getElementById('job_heading').value!="")
query=query+"&job_heading="+document.getElementById('job_heading').value;
if(document.getElementById('ProductionType').value!="")
query=query+"&productiontype="+document.getElementById('ProductionType').value;
if(document.getElementById('sp').value!="")
query=query+"&specialties="+document.getElementById('sp').value;
if(document.getElementById('af').value!="")
query=query+"&affiliation="+document.getElementById('af').value;
if(document.getElementById('lin').value!="")
query=query+"&licenses="+document.getElementById('lin').value;
if(document.getElementById('job_company').value!="")
query=query+"&job_company="+document.getElementById('job_company').value;
if(document.getElementById('job_age').value!=0)
query=query+"&job_age="+document.getElementById('job_age').value;
if(document.getElementById('job_city').value!="")
query=query+"&job_city="+document.getElementById('job_city').value;
if(document.getElementById('job_ethnicity').value!="")
query=query+"&job_ethnicity="+document.getElementById('job_ethnicity').value;
if(document.getElementById('job_gender').value!="")
query=query+"&job_gender="+document.getElementById('job_gender').value;

if(v==1)
boxid="datalist";
else
boxid="right_wrap";
document.getElementById(boxid).innerHTML="<center><img src='images/loading.gif' width='35' height='35'></center>";
xmlHttpc=GetXmlHttpObjectc()
if (xmlHttpc==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 } 
 if(v==1)
var url="job_list_all_ajax.php?"+query
else
var url="job_list_all.php?"+query

url=url+"&amp;sid="+Math.random()
xmlHttpc.onreadystatechange=stateChanged_page_wise
xmlHttpc.open("GET",url,true)
xmlHttpc.send(null)
}


function job_sim_ser()
{
query="";
if(document.getElementById('sim').value!="")
query=query+"&sim="+document.getElementById('sim').value;
boxid="datalist";
document.getElementById(boxid).innerHTML="<center><img src='images/loading.gif' width='35' height='35'></center>";
xmlHttpc=GetXmlHttpObjectc()
if (xmlHttpc==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 } 
var url="job_list_all_ajax.php?"+query
url=url+"&amp;sid="+Math.random()
xmlHttpc.onreadystatechange=stateChanged_page_wise
xmlHttpc.open("GET",url,true)
xmlHttpc.send(null)
}
///////////////////////////////////////



//////////////////////organization//////////////////////

function org_adv_ser(v)
{
if(document.getElementById('org_company').value!="")
query=query+"&org_company="+document.getElementById('org_company').value;
if(document.getElementById('org_country').value!=0)
query=query+"&org_country="+document.getElementById('org_country').value;
if(document.getElementById('orgstates').value!=0)
query=query+"&org_state="+document.getElementById('orgstates').value;
if(document.getElementById('org_city').value!="")
query=query+"&org_city="+document.getElementById('org_city').value;
if(v==1)
boxid="datalist";
else
boxid="right_wrap";
document.getElementById(boxid).innerHTML="<center><img src='images/loading.gif' width='35' height='35'></center>";
xmlHttpc=GetXmlHttpObjectc()
if (xmlHttpc==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 } 
 if(v==1)
var url="org_list_all_ajax.php?"+query
else
var url="org_list_all.php?"+query
url=url+"&amp;sid="+Math.random()
xmlHttpc.onreadystatechange=stateChanged_page_wise
xmlHttpc.open("GET",url,true)
xmlHttpc.send(null)
}


function org_sim_ser()
{
if(document.getElementById('sim').value!="")
query=query+"&sim="+document.getElementById('sim').value;
boxid="datalist";
document.getElementById(boxid).innerHTML="<center><img src='images/loading.gif' width='35' height='35'></center>";
xmlHttpc=GetXmlHttpObjectc()
if (xmlHttpc==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 } 
var url="org_list_all_ajax.php?"+query
url=url+"&amp;sid="+Math.random()
xmlHttpc.onreadystatechange=stateChanged_page_wise
xmlHttpc.open("GET",url,true)
xmlHttpc.send(null)
}
////////////////////////////////////////////////////




//////////////////////resume//////////////////////

function res_adv_ser(v)
{
if(document.getElementById('wfirstname').value!="")
query=query+"&wfirstname="+document.getElementById('wfirstname').value;
if(document.getElementById('wlastname').value!="")
query=query+"&wlastname="+document.getElementById('wlastname').value;
if(document.getElementById('wprofname').value!="")
query=query+"&wprofname="+document.getElementById('wprofname').value;
if(document.getElementById('wgender').value!="")
query=query+"&wgender="+document.getElementById('wgender').value;
if(document.getElementById('wcity').value!="")
query=query+"&wcity="+document.getElementById('wcity').value;
if(document.getElementById('wstates').value!=0)
query=query+"&wstate="+document.getElementById('wstates').value;
if(document.getElementById('wState').value==0)
query=query+"&wstate="+document.getElementById('wState').value;
if(document.getElementById('wcountry').value!="")
query=query+"&wcountry="+document.getElementById('wcountry').value;
if(document.getElementById('weye').value!="")
query=query+"&weye="+document.getElementById('weye').value;
if(document.getElementById('wbuild').value!="")
query=query+"&wbuild="+document.getElementById('wbuild').value;
if(document.getElementById('whaircolor').value!="")
query=query+"&whaircolor="+document.getElementById('whaircolor').value;
if(document.getElementById('wplayingrange').value!="")
query=query+"&wplayingrange="+document.getElementById('wplayingrange').value;
if(document.getElementById('wwaist').value!="")
query=query+"&wwaist="+document.getElementById('wwaist').value;
if(document.getElementById('wchestbust').value!="")
query=query+"&wchestbust="+document.getElementById('wchestbust').value;
if(document.getElementById('whipinseam').value!="")
query=query+"&whipinseam="+document.getElementById('whipinseam').value;
if(document.getElementById('wshoesize').value!="")
query=query+"&wshoesize="+document.getElementById('wshoesize').value;
if(document.getElementById('wethnicity').value!="")
query=query+"&wethnicity="+document.getElementById('wethnicity').value;
if(document.getElementById('wskincolor').value!="")
query=query+"&wskincolor="+document.getElementById('wskincolor').value;
if(document.getElementById('wperformnude').value!="")
query=query+"&wperformnude="+document.getElementById('wperformnude').value;
if(document.getElementById('wexperience').value!="")
query=query+"&wexperience="+document.getElementById('wexperience').value;
if(document.getElementById('wjobtype').value!="")
query=query+"&wjobtype="+document.getElementById('wjobtype').value;
if(document.getElementById('wvoice').value!="")
query=query+"&wvoice="+document.getElementById('wvoice').value;
if(document.getElementById('wlanguage').value!="")
query=query+"&wlanguage="+document.getElementById('wlanguage').value;
if(document.getElementById('wintaccent').value!="")
query=query+"&waccent="+document.getElementById('wintaccent').value;
if(document.getElementById('wspecialties').value!="")
query=query+"&wspecialties="+document.getElementById('wspecialties').value;
if(document.getElementById('waffiliation').value!="")
query=query+"&waffiliation="+document.getElementById('waffiliation').value;
if(document.getElementById('wpermit').value!="")
query=query+"&wpermit="+document.getElementById('wpermit').value;
if(document.getElementById('wgdance').value!="")
query=query+"&wgdance="+document.getElementById('wgdance').value;
if(document.getElementById('wagentcompany').value!="")
query=query+"&wagentcompany="+document.getElementById('wagentcompany').value;
if(document.getElementById('height_ft').value!="")
query=query+"&wheight_ft="+document.getElementById('height_ft').value;
if(document.getElementById('height_cem').value!="")
query=query+"&wheight_cem="+document.getElementById('height_cem').value;
if(document.getElementById('height_met').value!="")
query=query+"&wheight_met="+document.getElementById('height_met').value;
if(document.getElementById('height_inch').value!="")
query=query+"&wheight_inch="+document.getElementById('height_inch').value;
if(document.getElementById('weight_lbs').value!="")
query=query+"&wweight_lbs="+document.getElementById('weight_lbs').value;
if(document.getElementById('weight_kg').value!="")
query=query+"&wweight_kg="+document.getElementById('weight_kg').value;
if(v==1)
boxid="datalist";
else
boxid="right_wrap";
document.getElementById(boxid).innerHTML="<center><img src='images/loading.gif' width='35' height='35'></center>";
xmlHttpc=GetXmlHttpObjectc()
if (xmlHttpc==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 } 
 if(v==1)
var url="resume_list_all_ajax.php?"+query
else
var url="resume_list_all.php?"+query
url=url+"&amp;sid="+Math.random()
xmlHttpc.onreadystatechange=stateChanged_page_wise
xmlHttpc.open("GET",url,true)
xmlHttpc.send(null)
}


function res_sim_ser()
{
if(document.getElementById('sim').value!="")
query=query+"&sim="+document.getElementById('sim').value;
boxid="datalist";
document.getElementById(boxid).innerHTML="<center><img src='images/loading.gif' width='35' height='35'></center>";
xmlHttpc=GetXmlHttpObjectc()
if (xmlHttpc==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 } 
var url="resume_list_all_ajax.php?"+query
url=url+"&amp;sid="+Math.random()
xmlHttpc.onreadystatechange=stateChanged_page_wise
xmlHttpc.open("GET",url,true)
xmlHttpc.send(null)
}
////////////////////////////////////////////////////




////////////////event//////////////////////////////

function eve_adv_ser(v)
{
query="";
if(document.getElementById('ev_name').value!="")
query=query+"&ev_name="+document.getElementById('ev_name').value;
if(document.getElementById('ev_country').value!="")
query=query+"&ev_country="+document.getElementById('ev_country').value;
if(document.getElementById('eventstates').value!="")
query=query+"&ev_state="+document.getElementById('eventstates').value;
if(document.getElementById('ev_cat').value!=0)
query=query+"&ev_cat="+document.getElementById('ev_cat').value;
if(document.getElementById('ev_city').value!="")
query=query+"&ev_city="+document.getElementById('ev_city').value;
if(v==1)
boxid="datalist";
else
boxid="right_wrap";

document.getElementById(boxid).innerHTML="<center><img src='images/loading.gif' width='35' height='35'></center>";
xmlHttpc=GetXmlHttpObjectc()
if (xmlHttpc==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 } 
 if(v==1)
var url="event_list_all_ajax.php?"+query
else
var url="event_list_all.php?"+query

url=url+"&amp;sid="+Math.random()
xmlHttpc.onreadystatechange=stateChanged_page_wise
xmlHttpc.open("GET",url,true)
xmlHttpc.send(null)
}


function eve_sim_ser()
{
if(document.getElementById('sim').value!="")
query=query+"&sim="+document.getElementById('sim').value;
boxid="datalist";
document.getElementById(boxid).innerHTML="<center><img src='images/loading.gif' width='35' height='35'></center>";
xmlHttpc=GetXmlHttpObjectc()
if (xmlHttpc==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 } 
var url="event_list_all_ajax.php?"+query
url=url+"&amp;sid="+Math.random()
xmlHttpc.onreadystatechange=stateChanged_page_wise
xmlHttpc.open("GET",url,true)
xmlHttpc.send(null)
}

/////////////////////////////////////////////////



////////////////////directory///////////

function com_adv_ser(v)
{

if(document.getElementById('FilmName1').value!="")
query=query+"&FilmName1="+document.getElementById('FilmName1').value;
if(document.getElementById('country1').value!=0)
query=query+"&country1="+document.getElementById('country1').value;
if(document.getElementById('director').value!="")
query=query+"&director="+document.getElementById('director').value;
if(document.getElementById('Genre').value!=0)
query=query+"&Genre="+document.getElementById('Genre').value;
if(document.getElementById('writer').value!="")
query=query+"&writer="+document.getElementById('writer').value;
if(document.getElementById('ProgramType').value!="")
query=query+"&ProgramType="+document.getElementById('ProgramType').value;
if(document.getElementById('cast').value!="")
query=query+"&cast="+document.getElementById('cast').value;
if(document.getElementById('language').value!="")
query=query+"&language="+document.getElementById('language').value;
if(document.getElementById('format').value!="")
query=query+"&format="+document.getElementById('format').value;
if(document.getElementById('audienceage').value!="")
query=query+"&audience="+document.getElementById('audienceage').value;
if(document.getElementById('length').value!="")
query=query+"&length="+document.getElementById('length').value;
if(document.getElementById('producer').value!="")
query=query+"&producer="+document.getElementById('producer').value;


if(v==1)
boxid="datalist";
else
boxid="right_wrap";

document.getElementById(boxid).innerHTML="<center><img src='images/loading.gif' width='35' height='35'></center>";
xmlHttpc=GetXmlHttpObjectc()
if (xmlHttpc==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 } 
if(v==1)
var url="coming_list_all_ajax.php?"+query
else
var url="coming_list_all.php?"+query

url=url+"&amp;sid="+Math.random()
xmlHttpc.onreadystatechange=stateChanged_page_wise
xmlHttpc.open("GET",url,true)
xmlHttpc.send(null)
}


function com_sim_ser()
{
if(document.getElementById('sim').value!="")
query=query+"&sim="+document.getElementById('sim').value;
boxid="datalist";
document.getElementById(boxid).innerHTML="<center><img src='images/loading.gif' width='35' height='35'></center>";
xmlHttpc=GetXmlHttpObjectc()
if (xmlHttpc==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 } 
var url="coming_list_all_ajax.php?"+query
url=url+"&amp;sid="+Math.random()
xmlHttpc.onreadystatechange=stateChanged_page_wise
xmlHttpc.open("GET",url,true)
xmlHttpc.send(null)
}
///////////////////////////////////////



function film_adv_ser(v)
{
query="";
if(document.getElementById('FilmName1').value!="")
query=query+"&FilmName1="+document.getElementById('FilmName1').value;
if(document.getElementById('country1').value!=0)
query=query+"&country1="+document.getElementById('country1').value;
if(document.getElementById('director').value!="")
query=query+"&director="+document.getElementById('director').value;
if(document.getElementById('Genre').value!=0)
query=query+"&Genre="+document.getElementById('Genre').value;
if(document.getElementById('writer').value!="")
query=query+"&writer="+document.getElementById('writer').value;
if(document.getElementById('ProgramType').value!="")
query=query+"&ProgramType="+document.getElementById('ProgramType').value;
if(document.getElementById('cast').value!="")
query=query+"&cast="+document.getElementById('cast').value;
if(document.getElementById('language').value!="")
query=query+"&language="+document.getElementById('language').value;
if(document.getElementById('format').value!="")
query=query+"&format="+document.getElementById('format').value;
if(document.getElementById('audienceage').value!="")
query=query+"&audienceage="+document.getElementById('audienceage').value;
if(document.getElementById('length').value!="")
query=query+"&length="+document.getElementById('length').value;
if(document.getElementById('producer').value!="")
query=query+"&producer="+document.getElementById('producer').value;


if(v==1)
boxid="datalist";
else
boxid=="right_wrap";

document.getElementById(boxid).innerHTML="<center><img src='images/loading.gif' width='35' height='35'></center>";
xmlHttpc=GetXmlHttpObjectc()
if (xmlHttpc==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 } 
 if(v==1)
var url="film_list_all_ajax.php?"+query
else
var url="film_list_all.php?"+query

url=url+"&amp;sid="+Math.random()
xmlHttpc.onreadystatechange=stateChanged_page_wise
xmlHttpc.open("GET",url,true)
xmlHttpc.send(null)
}


function film_sim_ser()
{
if(document.getElementById('sim').value!="")
query=query+"&sim="+document.getElementById('sim').value;
boxid="datalist";
document.getElementById(boxid).innerHTML="<center><img src='images/loading.gif' width='35' height='35'></center>";
xmlHttpc=GetXmlHttpObjectc()
if (xmlHttpc==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 } 
var url="film_list_all_ajax.php?"+query
url=url+"&amp;sid="+Math.random()
xmlHttpc.onreadystatechange=stateChanged_page_wise
xmlHttpc.open("GET",url,true)
xmlHttpc.send(null)
}
///////////////////////////////////////



/////////////////network////////////////////////


function net_adv_ser(v)
{
if(document.getElementById('fname').value!="")
query=query+"&fname="+document.getElementById('fname').value;
if(document.getElementById('country').value!="")
query=query+"&country="+document.getElementById('country').value;
if(document.getElementById('city').value!="")
query=query+"&city="+document.getElementById('city').value;
if(document.getElementById('state').value!="")
query=query+"&state="+document.getElementById('state').value;
if(document.getElementById('prof').value!="")
query=query+"&prof="+document.getElementById('prof').value;
if(document.getElementById('gender').value!="")
query=query+"&gender="+document.getElementById('gender').value;
if(document.getElementById('status').value!="")
query=query+"&status="+document.getElementById('status').value;
if(document.getElementById('highschool').value!="")
query=query+"&highschool="+document.getElementById('highschool').value;
if(document.getElementById('ethnicity').value!="")
query=query+"&ethnicity="+document.getElementById('ethnicity').value;
if(v==1)
boxid="datalist";
else
boxid="right_wrap";
document.getElementById(boxid).innerHTML="<center><img src='images/loading.gif' width='35' height='35'></center>";
xmlHttpc=GetXmlHttpObjectc()
if (xmlHttpc==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 } 
 if(v==1)
var url="network_list_all_ajax.php?"+query
else
var url="network_list_all.php?"+query

url=url+"&amp;sid="+Math.random()
xmlHttpc.onreadystatechange=stateChanged_page_wise
xmlHttpc.open("GET",url,true)
xmlHttpc.send(null)
}

function net_sim_ser()
{
if(document.getElementById('sim').value!="")
query=query+"&sim="+document.getElementById('sim').value;
boxid="datalist";
document.getElementById(boxid).innerHTML="<center><img src='images/loading.gif' width='35' height='35'></center>";
xmlHttpc=GetXmlHttpObjectc()
if (xmlHttpc==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 } 
var url="network_list_all_ajax.php?"+query
url=url+"&amp;sid="+Math.random()
xmlHttpc.onreadystatechange=stateChanged_page_wise
xmlHttpc.open("GET",url,true)
xmlHttpc.send(null)
}

///////////////////////////////////





/////////////////network////////////////////////


function cas_adv_ser(v)
{

if(document.getElementById('project_name').value!="")
query=query+"&project_name="+document.getElementById('project_name').value;
if(document.getElementById('country').value!=0)
query=query+"&country="+document.getElementById('country').value;
if(document.getElementById('city').value!="")
query=query+"&city="+document.getElementById('city').value;
if(document.getElementById('castingstates').value!=0)
query=query+"&state="+document.getElementById('castingstates').value;
if(document.getElementById('gender').value!=0)
query=query+"&gender="+document.getElementById('gender').value;
if(document.getElementById('age').value!=0)
query=query+"&age="+document.getElementById('age').value;
if(document.getElementById('production').value!=0)
query=query+"&production="+document.getElementById('production').value;
if(document.getElementById('u1').checked==true)
query=query+"&union="+document.getElementById('u1').value;
if(document.getElementById('u2').checked==true)
query=query+"&union="+document.getElementById('u2').value;
if(document.getElementById('p1').checked==true)
query=query+"&pay="+document.getElementById('p1').value;
if(document.getElementById('p2').checked==true)
query=query+"&pay="+document.getElementById('p2').value;
if(document.getElementById('p3').checked==true)
query=query+"&pay="+document.getElementById('p3').value;
if(document.getElementById('n1').checked==true)
query=query+"&nudity="+document.getElementById('n1').value;
if(document.getElementById('n2').checked==true)
query=query+"&nudity="+document.getElementById('n2').value;

if(v==1)
boxid="datalist";
else
boxid="right_wrap";

document.getElementById(boxid).innerHTML="<center><img src='images/loading.gif' width='35' height='35'></center>";
xmlHttpc=GetXmlHttpObjectc()
if (xmlHttpc==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 } 
if(v==1)
var url="casting_list_all_ajax.php?"+query
else
var url="casting_list_all.php?"+query

url=url+"&amp;sid="+Math.random()
xmlHttpc.onreadystatechange=stateChanged_page_wise
xmlHttpc.open("GET",url,true)
xmlHttpc.send(null)
}

function cas_sim_ser()
{
if(document.getElementById('sim').value!="")
query=query+"&sim="+document.getElementById('sim').value;
boxid="datalist";
document.getElementById(boxid).innerHTML="<center><img src='images/loading.gif' width='35' height='35'></center>";
xmlHttpc=GetXmlHttpObjectc()
if (xmlHttpc==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 } 
var url="casting_list_all_ajax.php?"+query
url=url+"&amp;sid="+Math.random()
xmlHttpc.onreadystatechange=stateChanged_page_wise
xmlHttpc.open("GET",url,true)
xmlHttpc.send(null)
}

///////////////////////////////////





function go_magazine_search(v)
{ 
if(v==1)
boxid="datalist";
else
boxid="right_wrap";
document.getElementById(boxid).innerHTML="<center><img src='images/loading.gif' width='35' height='35'></center>";

query="";
query=query+"&sim="+document.getElementById('sim').value;

xmlHttpc=GetXmlHttpObjectc()
if (xmlHttpc==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 } 
if(v==1)
var url="magazine_list_all_ajax.php?"+query
else
var url="magazine_list_all.php?"+query
url=url+"&amp;sid="+Math.random()
xmlHttpc.onreadystatechange=stateChanged_page_wise
xmlHttpc.open("GET",url,true)
xmlHttpc.send(null)
}


function go_report_search(v)
{ 
if(v==1)
boxid="datalist";
else
boxid="right_wrap";
document.getElementById(boxid).innerHTML="<center><img src='images/loading.gif' width='35' height='35'></center>";

query="";
query=query+"&sim="+document.getElementById('sim12').value;

xmlHttpc=GetXmlHttpObjectc()
if (xmlHttpc==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 } 
if(v==1)
var url="event_report_list_all_ajax.php?"+query
else
var url="event_report_list_all.php?"+query
url=url+"&amp;sid="+Math.random()
xmlHttpc.onreadystatechange=stateChanged_page_wise
xmlHttpc.open("GET",url,true)
xmlHttpc.send(null)
}


function go_cat_wise(cat)
{ 
boxid="datalist";
document.getElementById(boxid).innerHTML="<center><img src='images/loading.gif' width='35' height='35'></center>";

query="";
query=query+"&category="+cat;

for(var x=0;x<10000;x++){y=x;}
xmlHttpc=GetXmlHttpObjectc()
if (xmlHttpc==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 } 

var url="magazine_list_all_ajax.php?"+query
url=url+"&amp;sid="+Math.random()
xmlHttpc.onreadystatechange=stateChanged_page_wise
xmlHttpc.open("GET",url,true)
xmlHttpc.send(null)
}







function show_box_content(id,bid)
{ 
boxid=bid;
var moreid="more_"+bid;
document.getElementById(boxid).innerHTML="<img src='images/loading.gif' width='35' height='35'>";
document.getElementById(moreid).innerHTML="<a href='home_page_content.php?HID="+ id +"' target='_blank' class='text_link_small'>More>></a>";

for(var x=0;x<10000;x++){y=x;}
xmlHttpc=GetXmlHttpObjectc()
if (xmlHttpc==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 } 
var url="show_box_content.php?id="+id
url=url+"&amp;sid="+Math.random()
xmlHttpc.onreadystatechange=stateChanged
xmlHttpc.open("GET",url,true)
xmlHttpc.send(null)
}


function stateChanged_page_wise() 
{ 
if(xmlHttpc.readyState==4 || xmlHttpc.readyState=="complete"){
 document.getElementById(boxid).innerHTML=xmlHttpc.responseText;
}
}









function GetXmlHttpObjectc()
{
var xmlHttpc=null;
try
 {
 // Firefox, Opera 8.0+, Safari
 xmlHttpc=new XMLHttpRequest();
 }
catch (e)
 {
 //Internet Explorer
 try
  {
  xmlHttpc=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlHttpc=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttpc;
}



function SetCounter(event)
{
	
	var x;
	if(document.getElementById("CompanyDesc").value.length==4000 && event.keyCode!=8 && event.keyCode!=46)
	{
	
	return false;
	}
	else
	{
	x = 4000 - document.getElementById("CompanyDesc").value.length;
	document.getElementById("counter").value = x;
	}
}
function privacy(v)
{
if(v==2)
window.open("privacy.php",'Preview','width=600,height=600,toolbar=no,location=0,status=0,menubar=0,titlebar=0,scrollbars=1,resizable=1')
if(v==1)
window.open("terms1.php",'Preview','width=600,height=600,toolbar=no,location=0,status=0,menubar=0,titlebar=0,scrollbars=1,resizable=1')
}


function ImageUpload(theForm, ID, UploadDir)
	{
		window.open("image_file_upload.php?form="+theForm+"&UploadDir="+UploadDir+"&ID="+ID,'Preview','width=600,height=200,toolbar=no,location=0,status=0,menubar=0,titlebar=0,scrollbars=1,resizable=1')
	}	
	
	
	
function ValidateForm()
	{
		var msg="";
		var ok=true;
		if(document.form1.Email.value=="")
		{
			msg=msg + "Please enter \"Email Address\"\n";
			document.getElementById('EmailBg').style.backgroundColor="#FF9F9F";
			ok=false;
		}else{document.getElementById('EmailBg').style.backgroundColor="";}
		
		
		if(document.form1.Password.value=="")
		{
			msg=msg + "Please enter \"Password\"\n";
			document.getElementById('PasswordBg').style.backgroundColor="#FF9F9F";
			ok=false;
		}
		else if(document.form1.Password.value.length<6)
		{
		msg=msg + "Password must be atleast 6 characters\n";
		document.getElementById('PasswordBg').style.backgroundColor="#FF9F9F";
		ok=false;
		}
		else{document.getElementById('PasswordBg').style.backgroundColor="";}
		
		
		
		if(document.form1.ConfirmPassword.value=="")
		{
			msg=msg + "Please enter \"Confirm Password\"\n";
			document.getElementById('ConfirmPasswordBg').style.backgroundColor="#FF9F9F";
			ok=false;
		}
		else
		{
			document.getElementById('ConfirmPasswordBg').style.backgroundColor="";
			if(document.form1.Password.value!=document.form1.ConfirmPassword.value)
			{
				msg=msg + "Invalid \"Password Confirmation\"\n";
				ok=false;
			}
		}
		

		
		


		if(document.form1.FirstName.value=="")
		{
			msg=msg + "Please enter \"First Name\"\n";
			document.getElementById('FirstNameBg').style.backgroundColor="#FF9F9F";
			ok=false;
		}else{document.getElementById('FirstNameBg').style.backgroundColor="";}
							
		if(document.form1.LastName.value=="")
		{
		    msg=msg+ "Please enter \"Last Name\"\n";
			document.getElementById('LastNameBg').style.backgroundColor="#FF9F9F";
		    ok=false;
		}else{document.getElementById('LastNameBg').style.backgroundColor="";}
		
		
		if(document.getElementById('proff').value=="")
		{
			msg=msg + "Please select your \"Profession\"\n";
			document.getElementById('proffBg').style.backgroundColor="#FF9F9F";
			ok=false;
		}else{document.getElementById('proffBg').style.backgroundColor="";}
		

		if(document.form1.Address.value=="")
		{
			msg=msg + "Please enter \"Address\"\n";
			document.getElementById('AddressBg').style.backgroundColor="#FF9F9F";
			ok=false;
		}else{document.getElementById('AddressBg').style.backgroundColor="";}
		
		if(document.form1.City.value=="")
		{
			msg=msg + "Please enter \"City\"\n";
			document.getElementById('CityBg').style.backgroundColor="#FF9F9F";
			ok=false;
		}else{document.getElementById('CityBg').style.backgroundColor="";}
		
		if(document.form1.states.value==0 && document.form1.StateText.value=="")
		{
		msg=msg+ "Please enter \"State\"\n";
		document.getElementById('StateBg').style.backgroundColor="#FF9F9F";
	   ok=false;
		}else{document.getElementById('StateBg').style.backgroundColor="";}

		
		if(document.form1.Country.value=="")
		{
			msg=msg + "Please select \"Country\"\n";
			document.getElementById('CountryBg').style.backgroundColor="#FF9F9F";
			ok=false;
		}else{document.getElementById('CountryBg').style.backgroundColor="";}
		
		if(document.form1.HomePage.value!="")
		{
		var st=document.form1.HomePage.value;
		var str=st.substr(0,7);
		var f=0;
		if(str.search("http://")==-1)
		 f=1;
		if(f==1)
		{
		 msg=msg+ "Invalid \"Website\" format\n";
		 ok=false;
		}
		}
		if(document.getElementById('CodeType').value=="")
		{
		   msg=msg+"Please enter \"Validation Code\"\n";
		   ok=false;
		}
		if(document.getElementById('terms').checked==false)
		{
		   msg=msg+"Please agree to our \"Terms of Use\"\n";
		   ok=false;
		}
				
		if(document.getElementById('com').checked==true)
		{
			if(document.getElementById('CompanyName').value=="")
			{
			   msg=msg+"Please enter \"Company Name\"\n";
			   ok=false;
			}

			if(document.getElementById('category[]').value==0)
			{
			   msg=msg+"Please select \"Company Category\"\n";
			   ok=false;
			}
		}	
		
		
		if(ok==false)
			alert(msg);
		return ok;
	
	}
	
	
function sel_state(val)
{
if(val==0)
{
document.getElementById('StateID').style.display="";
document.getElementById('StateText').focus();
}
else
{
document.getElementById('StateID').style.display="none";
document.getElementById('StateText').value="";
}
}	
function s()
{
if(document.getElementById('com').checked==true){
document.getElementById('cat').style.display="";
document.getElementById('cat1').style.display="";
document.getElementById('cdes').style.display="";
}
if(document.getElementById('com').checked==false){
document.getElementById('cat').style.display="none";
document.getElementById('cat1').style.display="none";
document.getElementById('cdes').style.display="none";
}
}


function hideall()
	{
		var element;
		var elementid;
		for(var i=0; i<=11; i++)
		{
			elementid = "menu"+i;
			element = document.getElementById(elementid);
			if(element!=null)
				element.style.display = 'none';
		}	
		
		var element;
		var elementid;
		for(var i=0; i<=12; i++)
		{
			elementid = "op"+i;
			element = document.getElementById(elementid);
			if(element!=null)
				element.style.display = 'none';
		}	
			
	}
	
	function show(id)
	{
		var elementmenu = document.getElementById("menu"+id);
		
		if(elementmenu.style.display=="none")
		{
			elementmenu.style.display = '';
			
		}	
		else if(elementmenu.style.display!="none")
		{
			elementmenu.style.display = 'none';

		}
	}
	
	function showop(id)
	{
		var elementmenu = document.getElementById("op"+id);
		if(elementmenu.style.display=="none")
		{
			elementmenu.style.display = '';
		}	
		else
		{
			elementmenu.style.display = 'none';
		}
	}
	
	
	
	
	

function randIm()
{ 
document.getElementById("cc").innerHTML="Wait.." ;
xmlHttp=GetXmlHttpObjectCode()
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 } 
var url="reload_vc.php?"
url=url+"&amp;sid="+Math.random()
xmlHttp.onreadystatechange=stateChangedCode
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}
								  
function stateChangedCode() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
document.getElementById("cc").innerHTML=xmlHttp.responseText ;
document.getElementById("ccdemo").value=xmlHttp.responseText ;
 } 
}

function GetXmlHttpObjectCode()
{
var xmlHttp=null;
try
 {
 // Firefox, Opera 8.0+, Safari
 xmlHttp=new XMLHttpRequest();
 }
catch (e)
 {
 //Internet Explorer
 try
  {
  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttp;

}


var xmlHttp;
function randIm()
{ 
document.getElementById("cc").innerHTML="Wait.." ;
xmlHttp=GetXmlHttpObjectCode()
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 } 
var url="reload_vc.php?"
url=url+"&amp;sid="+Math.random()
xmlHttp.onreadystatechange=stateChangedCode
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}
								  
function stateChangedCode() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
document.getElementById("cc").innerHTML=xmlHttp.responseText ;
document.getElementById("ccdemo").value=xmlHttp.responseText ;
 } 
}

function GetXmlHttpObjectCode()
{
var xmlHttp=null;
try
 {
 // Firefox, Opera 8.0+, Safari
 xmlHttp=new XMLHttpRequest();
 }
catch (e)
 {
 //Internet Explorer
 try
  {
  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttp;

}

function get_search_box(v)
{
if(v==1){
document.getElementById('adv_search').style.display="";
document.getElementById('sim_search').style.display="none";
}

if(v==2){
document.getElementById('adv_search').style.display="none";
document.getElementById('sim_search').style.display="";
}
}




function get_sub_cat1(ID)
{
document.getElementById('subcat1').options.length=0;
document.getElementById('subcat2').options.length=0;
document.getElementById('subcat3').options.length=0;
document.getElementById('subcat4').options.length=0;
document.getElementById('subcat5').options.length=0;
//document.formaccess.subcat6.options.length=0;
op2=new Option();
op2.value=0;
op2.text="...Select...";
document.getElementById('subcat1').options[0]=op2;

var ok=false;
var str;
var arr=new Array(document.getElementById('subcats1').length);
str=document.getElementById('subcats1').value;
arr=str.split("|");
var j=0
var op=1;
				for(var i=0;i<=arr.length-1;i++)
				{
				if(arr[j]==ID)
				{
				
				var option = new Option();
				option.value=arr[j+1];
				
				option.text=arr[j+2];
				document.getElementById('subcat1').options[op]=option;
				op++;
				ok=true;
				}
				j=j+3;
				}
}

function get_sub_cat2(ID)
{
document.getElementById('subcat2').options.length=0;
op2=new Option();
op2.value=0;
op2.text="...Select...";
document.getElementById('subcat2').options[0]=op2;

var ok=false;
var str;
var arr=new Array(document.getElementById('subcats2').length);
str=document.getElementById('subcats2').value;
arr=str.split("|");
var j=0
var op=1;
				for(var i=0;i<=arr.length-1;i++)
				{
				if(arr[j]==ID)
				{
				
				var option = new Option();
				option.value=arr[j+1];
				
				option.text=arr[j+2];
				document.getElementById('subcat2').options[op]=option;
				op++;
				ok=true;
				}
				j=j+3;
				}
}

function get_sub_cat3(ID)
{
document.getElementById('subcat3').options.length=0;
op2=new Option();
op2.value=0;
op2.text="...Select...";
document.getElementById('subcat3').options[0]=op2;

var ok=false;
var str;
var arr=new Array(document.getElementById('subcats3').length);
str=document.getElementById('subcats3').value;
arr=str.split("|");
var j=0
var op=1;
				for(var i=0;i<=arr.length-1;i++)
				{
				if(arr[j]==ID)
				{
				
				var option = new Option();
				option.value=arr[j+1];
				
				option.text=arr[j+2];
				document.getElementById('subcat3').options[op]=option;
				op++;
				ok=true;
				}
				j=j+3;
				}
}

function get_sub_cat4(ID)
{
document.getElementById('subcat4').options.length=0;
op2=new Option();
op2.value=0;
op2.text="...Select...";
document.getElementById('subcat4').options[0]=op2;

var ok=false;
var str;
var arr=new Array(document.getElementById('subcats4').length);
str=document.getElementById('subcats4').value;
arr=str.split("|");
var j=0
var op=1;
				for(var i=0;i<=arr.length-1;i++)
				{
				if(arr[j]==ID)
				{
				
				var option = new Option();
				option.value=arr[j+1];
				
				option.text=arr[j+2];
				document.getElementById('subcat4').options[op]=option;
				op++;
				ok=true;
				}
				j=j+3;
				}
}

function get_sub_cat5(ID)
{
document.getElementById('subcat5').options.length=0;
op2=new Option();
op2.value=0;
op2.text="...Select...";
document.getElementById('subcat5').options[0]=op2;

var ok=false;
var str;
var arr=new Array(document.getElementById('subcats5').length);
str=document.getElementById('subcats5').value;
arr=str.split("|");
var j=0
var op=1;
				for(var i=0;i<=arr.length-1;i++)
				{
				if(arr[j]==ID)
				{
				
				var option = new Option();
				option.value=arr[j+1];
				
				option.text=arr[j+2];
				document.getElementById('subcat5').options[op]=option;
				op++;
				ok=true;
				}
				j=j+3;
				}
}

function get_sub_cat6(ID)
{
document.getElementById('subcat6').options.length=0;
op2=new Option();
op2.value=0;
op2.text="...Select...";
document.getElementById('subcat6').options[0]=op2;

var ok=false;
var str;
var arr=new Array(document.getElementById('subcats6').length);
str=document.getElementById('subcats6').value;
arr=str.split("|");
var j=0
var op=1;
				for(var i=0;i<=arr.length-1;i++)
				{
				if(arr[j]==ID)
				{
				
				var option = new Option();
				option.value=arr[j+1];
				
				option.text=arr[j+2];
				document.getElementById('subcat6').options[op]=option;
				op++;
				ok=true;
				}
				j=j+3;
				}
}


function hide_all_section()
{
for(var i=1;i<50;i++){
if(document.getElementById('tab'+i))
document.getElementById('tab'+i).style.display="none";
}
	
}
function get_section(s)

{   //alert(s);
	hide_all_section();
	document.getElementById(s).style.display="";
}

function report(val,id)
{
window.open("report_violation.php?heading="+val+"&id="+id,'Preview50','width=600,height=450,toolbar=no,location=0,status=0,menubar=0,titlebar=0,scrollbars=0,resizable=0')
}

function open_win(){
window.open("live_help/fe_panel.php",'opp','height=390,width=660');}



function help_video(id)
{
	window.open("help_video.php?id="+id,'opp','height=500,width=660');
}




