
function mywin(page)
{window.open(page,'','width=750,height=500 scroll=no');}
function notcomplete()
{alert("Unfortunately this function is not yet activated");}
function notcomplete2()
{alert("Unfortunately this function is not yet activated");return false;}
function notexist()
{parent.location.href="errorpage.htm";}
function ismail()
{var pos;var pos2;var s=document.form1.email.value;if(s=="")
{alert("Please Enter a valid e-mail address");document.form1.email.focus();return false;}
pos=s.indexOf('@',1);if((pos==-1)||(pos==(s.length-1)))
{alert("Please Enter a valid e-mail address");document.form1.email.focus();return false;}
pos2=s.indexOf('.',1);if((pos2==-1)||(pos2==(s.length-1)))
{alert("Please Enter a valid e-mail address");document.form1.email.focus();return false;}
return true;}
var whitespace="\t\n\r";function isEmpty(s)
{var i;if((s==null)||(s.length==0))
return true;for(i=0;i<s.length;i++)
{var c=s.charAt(i);if(whitespace.indexOf(c)==-1)
return false;}
return true;}
function loadmain(parenttag,page,width,height){var v=parent.document.getElementById(parenttag);v.height=height;v.src=page;}
function loadmain_sub(parenttag,page,srctag,src,width,height){var v=window.parent.document.getElementById(parenttag);v.height=height;v.src=page;}
function loadpagecontent(mytag,page,width,height){var content=document.getElementById(mytag);content.innerHTML="<iframe id='mainframe' name='mainframe' src='"+page+"' width='"+width+"' height='"+height+"' scrolling='no' frameborder='0' class='frame_bground' name='footer'></iframe>";}
function loadsubpagecontent(parenttag,mytag,page,width,height,page2){sitmap(page,height,page2);var v=window.parent.document.getElementById(parenttag);v.height=height;var content=document.getElementById(mytag);content.innerHTML="<iframe id='subframe' name='subframe' src='"+page+"' width='"+width+"' height='"+height+"' scrolling='no' frameborder='0' class='frame_bground'></iframe>";}
function loadnewsframe(parenttag,mytag,page,width,height,page2){var content=document.getElementById(mytag);content.innerHTML="<iframe id='mainframe' name='mainframe' src='"+page+"' width='"+width+"' height='"+height+"' scrolling='no' frameborder='0' class='frame_bground'></iframe>";}
function loadnewsframe2(parenttag,mytag,page,width,height,page2){var content=window.parent.document.getElementById(mytag);content.innerHTML="<iframe id='mainframe' name='mainframe' src='"+page+"' width='"+width+"' height='"+height+"' scrolling='no' frameborder='0' class='frame_bground'></iframe>";}
function loadsearchframe(mytag,width,height,page2){var content=document.getElementById(mytag);content.innerHTML="<iframe id='subframe' name='subframe' src='' width='"+width+"' height='"+height+"' scrolling='no' frameborder='0' class='frame_bground'></iframe>";document.form2.submit();}
function sitmap(page,height,page2)
{parent.location.href="community.jsp?page="+page2+"?page="+page+"&height="+height+"#";}
function loadsubpagecontent2(parenttag,mytag,page,width,height){var x=parent.parent.document.getElementById(parenttag);x.height=height;var content=parent.document.getElementById(mytag);content.innerHTML="<iframe id='subframe' name='subframe' src='"+page+"' width='"+width+"' height='"+height+"' scrolling='no' frameborder='0' class='frame_bground'></iframe>";}
function loadsubpagecontent_event(parenttag,mytag,page,width,height){var x=parent.document.getElementById(parenttag);x.src=page;x.height=height;}
function loadsubpagecontent3(parenttag,mytag,page,width,height){var x=parent.parent.document.getElementById(parenttag);x.height=height;var content=parent.parent.document.getElementById(mytag);content.innerHTML="<iframe id='mainframe' name='mainframe' src='"+page+"' width='"+width+"' height='"+height+"' scrolling='no' frameborder='0' class='frame_bground'></iframe>";}
function loadsubpagecontent4(parenttag,mytag,page,width,height){sitmap2(page)
var x=parent.parent.document.getElementById(parenttag);x.height=height;var content=parent.parent.document.getElementById(mytag);content.innerHTML="<iframe id='mainframe' name='mainframe' src='"+page+"' width='"+width+"' height='"+height+"' scrolling='no' frameborder='0' class='frame_bground'></iframe>";}
function sitmap2(page)
{parent.parent.location.href="community.jsp?page="+page+"#";}
function fullpage(page)
{parent.parent.location.href=page;}
function loadsubpagecontent5(parenttag,mytag,page,width,height){var x=parent.document.getElementById(parenttag);x.height=height;var content=parent.document.getElementById(mytag);content.innerHTML="<iframe id='mainframe'  src='"+page+"' width='"+width+"' height='"+height+"' scrolling='no' frameborder='0' class='frame_bground'></iframe>";}
function validate()
{if(isEmpty(document.add.news_title.value))
{alert("News Title  required !! ");document.add.news_title.focus();return false;}
if(isEmpty(document.add.news_details.value))
{alert("News Details !! ");document.add.news_details.focus();return false;}
if(isEmpty(document.add.news_summary.value))
{alert("News sumary required !! ");document.add.news_summary.focus();return false;}
return true;}
function postNewSite(){var frm=document.postNewSiteForm;if(frm.title.value=="")
{alert(" Title  required !! ");frm.title.focus();return false;}
if(frm.details.value=="")
{alert("Details  required !! ");frm.details.focus();return false;}
return true;}
function myImage(imageName)
{window.open("myImage.jsp?myImage="+imageName+"","","scrollbars=yes,menubar=no,height=600,width=800,resizable=yes,toolbar=no,location=no,left=200,top=30,status=no");}
function myImages(imageName)
{window.open("myImages.jsp?myImage="+imageName+"","","scrollbars=yes,menubar=no,height=600,width=800,resizable=yes,toolbar=no,location=no,left=200,top=30,status=no");}
function validate_adveritse()
{var pos;var pos2;var s=document.advertiseform.mail.value;if(s=="")
{alert("Please Enter a valid e-mail address");document.advertiseform.mail.focus();return false;}
pos=s.indexOf('@',1);if((pos==-1)||(pos==(s.length-1)))
{alert("Please Enter a valid e-mail address");document.advertiseform.mail.focus();return false;}
pos2=s.indexOf('.',1);if((pos2==-1)||(pos2==(s.length-1)))
{alert("Please Enter a valid e-mail address");document.advertiseform.mail.focus();return false;}
if(isEmpty(document.advertiseform.feedback.value))
{alert("Feedback required !! ");document.advertiseform.feedback.focus();return false;}}
function validate_contactus()
{var pos;var pos2;var s=document.advertiseform.mail.value;if(s=="")
{alert("Please Enter a valid e-mail address");document.advertiseform.mail.focus();return false;}
pos=s.indexOf('@',1);if((pos==-1)||(pos==(s.length-1)))
{alert("Please Enter a valid e-mail address");document.advertiseform.mail.focus();return false;}
pos2=s.indexOf('.',1);if((pos2==-1)||(pos2==(s.length-1)))
{alert("Please Enter a valid e-mail address");document.advertiseform.mail.focus();return false;}
if(document.advertiseform.subject.options.value=="0")
{alert("Please Select Subject!! ");document.advertiseform.subject.focus();return false;}
if(isEmpty(document.advertiseform.feedback.value))
{alert("Feedback required !! ");document.advertiseform.feedback.focus();return false;}}
function gallary(page)
{window.open(""+page+"","","scrollbars=yes,menubar=no,height=600,width=900,resizable=yes,toolbar=no,location=no,left=150,top=30,status=no");}
function gallary_inside(imagesrc1)
{var x=document.getElementById("imchange");x.src="../images/"+imagesrc1;}
function gallary_inside2(imagesrc1)
{var x=parent.document.getElementById("imchange");x.src=imagesrc1;}
function MM_preloadImages()
{var preload_image_object=new Image();var image_url=new Array();image_url[0]="/images/bg_2.jpg";image_url[1]="/images/curve_1.jpg";image_url[2]="/images/curve_2.jpg";image_url[3]="/images/curve_3.jpg";image_url[4]="/images/curve_5.jpg";image_url[6]="/images/market_bg.jpg";image_url[7]="/images/R_bg.jpg";image_url[8]="/images/right_edge.jpg";image_url[9]="/images/small_star.jpg";image_url[10]="/images/star.jpg";var i=0;for(i=0;i<=10;i++)
preload_image_object.src=image_url[i];}
function MM_preloadImages2()
{var preload_image_object=new Image();var image_url=new Array();image_url[0]="/images/h_08.jpg";image_url[1]="images/h_21.jpg";image_url[2]="/images/h_12.jpg";image_url[3]="/images/curve_3.jpg";image_url[4]="/images/market_place/headar_15m.jpg";image_url[6]="/images/market_place/topp55.jpg";image_url[7]="/images/market_place/m_star.jpg";image_url[8]="/images/market_place/t_right_curv.jpg";image_url[9]="/images/market_place/h_y_left2.jpg";image_url[10]="/images/market_place/new.jpg";image_url[11]="/images/market_place/m_header_40.jpg";image_url[12]="/images/market_place/left_curv.jpg";image_url[13]="/images/headar_14.jpg";var i=0;for(i=0;i<=13;i++)
preload_image_object.src=image_url[i];}
function goto_URL(object){document.eventsearch.country.value=object.options[object.selectedIndex].value;document.eventsearch.regions.value=object.name;document.eventsearch.submit();}
function event_Data(object,type){var firstSelect=object.options[object.selectedIndex].value;var secSelect=type.options[type.selectedIndex].value;if(firstSelect=="0"){alert("Please Select The Country");return false;}
if(secSelect=="0"){alert("Please Select The Type");return false;}
document.eventsearch.country.value=object.options[object.selectedIndex].value;document.eventsearch.regions.value=object.name;document.eventsearch.type.value=type.options[type.selectedIndex].value;document.eventsearch.submit();}
function validate_Search()
{if(document.form2.keyword.value==""){alert("Please Enter Search Keyword");document.form2.keyword.focus();return false;}
return true;}
