﻿var proAccount="<b><big>Pro Accounts</big></b><br />members with Pro Accounts get many benefits.<br />";// including <ul><li>larger uploads</li><li>store discounts</li><li>enhanced editing</li><li>priorty support</li></ul><br />all for a one-off <b>lifetime subscription of $20!</b>";
proAccount += "<a href='" + strCompanyWeb + "store\/checkout.aspx?enrol=15268' target='_blank'><strong>click here to get your pro account, now!</strong></a>";
function lmc_onchange(){zeroSearchFields("lmc");document.getElementById("form1").submit();}
function CT_onchange(){zeroSearchFields("CT");document.getElementById("form1").submit();}
function SeaID_onchange(){zeroSearchFields("SeaID");document.getElementById("form1").submit();}
function CountryID_onchange(){zeroSearchFields("CountryID");document.getElementById("form1").submit();}
function zoom(x){window.open('Photo.aspx?i='+x,'_blank','toolbar=no,resizable=yes');}
function zoomVideo(x){window.open('VideoWindow.aspx?vid='+strCompanyWeb+"upload/video/"+x+".flv",'_blank','toolbar=no,resizable=yes');    }
function openZoomWindow(URL) {remote = window.open("","remotewin","width=600,height=600,scrollbars=yes,left=0,top=0");remote.location.href = URL;if (remote.opener == null) remote.opener = window;}
function EC(x){document.getElementById("form1").submit();document.form1.CT.value = ""; document.form1.STR.value = ""; document.form1.Ed.value = x;document.form1.submit();}
function zeroSearchFields(strFieldName){document.getElementById("form1").action='default.aspx';var x;var myFields = new Array("CT","Ed","STR","lmc","CountryID","SeaID");for (x in myFields){if(myFields[x]!=strFieldName){if(document.getElementById(myFields[x])!=null){document.getElementById(myFields[x]).value="";}}}}
function voteAJAX(x){if(getChip("votes","v"+x)==x){alert(AlreadyVoted);return;}setChip("votes","v"+x,x,expDay);if(getChip("votes","v"+x)==""){alert('You must enable cookies to vote');return;}
xmlHttp=GetXmlHttpObject();if (xmlHttp==null){window.open(strCompanyWeb+'Photo-Contest/Votes.aspx?ID='+x,'_blank','toolbar=no,width=200,height=100');return;} 
document.getElementById("vote"+x).innerHTML="<div style='color:green'>voting...</div>"; 	
var url="VoteByAjax.aspx";url=url+"?id="+x;url=url+"&sid="+Math.random();xmlHttp.onreadystatechange=stateChanged;xmlHttp.open("GET",url,true);xmlHttp.send(null);
function stateChanged(){if (xmlHttp.readyState==4){ if(document.getElementById("vote"+x)!=null){document.getElementById("vote"+x).innerHTML=xmlHttp.responseText;}}}}
function vote(x){if (getChip("votes", "v" + x) == x ){alert(AlreadyVoted);return;}setChip("votes", "v" + x, x, expDay);if(getChip("votes","v"+x)==""){alert('You must enable cookies to vote');return;}window.open('Votes.aspx?ID=' + x,'_blank','toolbar=no,width=200,height=100');}
function shortlist(x){f=confirm("This action will shortlist the entry\nAre you sure?");if(f==false){return;}if (getChip("shortlist", "v" + x) == x ){alert('Sorry, you have already shortlisted this entry!');return;}setChip("shortlist", "v" + x, x, expYear);if(getChip("shortlist","v"+x)==""){alert('You must enable cookies to vote');return;}window.open('shortlist.aspx?ID=' + x,'_blank','toolbar=no,width=300,height=100');}


