﻿var proAccount="<b><big>Pro Accounts</big></b><br />Membership is free but members with Pro Accounts<ul><li>can upload twice as many images per day</li><li>their zoomed images are displayed twice the size!</li><li>You don't see these popups (or ads) here either!</li><li>and more...</li></ul><br /><a href='"+strCompanyWeb+"Members\/ProAccounts.aspx'>learn more...</a><br /><br /><b>only $20 - Lifetime subscription!</b><br />";
proAccount += "<a href='" + strCompanyWeb + "store\/checkout.aspx?enrol=31348' 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');}
var AlreadyVoted='You have already voted for this entry today!\nYou can vote for it again tomorrow.';
var CommandUnavailable='This command is not available';



