function copyit(theField){
var tempval=eval("document."+theField)
tempval.focus()
tempval.select()
therange=tempval.createTextRange()
therange.execCommand("Copy")
return false;
}
function taLimit(){
var taObj=event.srcElement;
if (taObj.value.length==taObj.maxLength*1) return false;
}
function taCount(visCnt){
var taObj=event.srcElement;
if (taObj.value.length>taObj.maxLength*1) taObj.value=taObj.value.substring(0,taObj.maxLength*1);
if (visCnt) visCnt.innerText=taObj.maxLength-taObj.value.length;
}
var now = new Date();
var days = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
var months = new Array('January','February','March','April','May','June','July','August','September','October','November','December');
var date = ((now.getDate()<10) ? "" : "")+ now.getDate();
var date_length = date.length;
var last_date_char = date.charAt(date_length-1);
if (date==1) suffix=("st");
else if (date==2) suffix=("nd");
else if (date==3) suffix=("rd");
else if (date==21) suffix=("st");
else if (date==22) suffix=("nd");
else if (date==23) suffix=("rd");
else if (date==31) suffix=("st");
else suffix=("th");
function submitlinkform(){
if(document.LinkExchangeRequest.Link_Partners_Sitename.value == '' || document.LinkExchangeRequest.Link_Partners_Sitename.value == 'Your Website Name'){
document.LinkExchangeRequest.Link_Partners_Sitename.style.backgroundColor='#B7CEDC';
alert("Please enter the name of your website in the highlighted field before proceeding.");
document.LinkExchangeRequest.Link_Partners_Sitename.value="";
document.LinkExchangeRequest.Link_Partners_Sitename.focus();
return false;
}
else if(document.LinkExchangeRequest.Link_Partners_Linkto.value == '' || document.LinkExchangeRequest.Link_Partners_Linkto.value == 'http://www.your_website.com/page'){
document.LinkExchangeRequest.Link_Partners_Linkto.style.backgroundColor='#B7CEDC';
alert("Please enter the URL of the page you would like us to link to before proceeding.");
document.LinkExchangeRequest.Link_Partners_Linkto.value="";
document.LinkExchangeRequest.Link_Partners_Linkto.focus();
return false;
}
else if(document.LinkExchangeRequest.Link_Partners_Linktext.value == '' || document.LinkExchangeRequest.Link_Partners_Linktext.value == 'Your Short Link Title Here'){
document.LinkExchangeRequest.Link_Partners_Linktext.style.backgroundColor='#B7CEDC';
alert("Please enter the link text you want us to use before proceeding.");
document.LinkExchangeRequest.Link_Partners_Linktext.value="";
document.LinkExchangeRequest.Link_Partners_Linktext.focus();
return false;
}
else if(document.LinkExchangeRequest.Link_Partners_Description.value == '' || document.LinkExchangeRequest.Link_Partners_Description.value == 'Your Short Link Description Here'){
document.LinkExchangeRequest.Link_Partners_Description.style.backgroundColor='#B7CEDC';
alert("Please enter the short description of your website before proceeding.");
document.LinkExchangeRequest.Link_Partners_Description.value="";
document.LinkExchangeRequest.Link_Partners_Description.focus();
return false;
}
else if(document.LinkExchangeRequest.Link_Partners_Linkpage.value == '' || document.LinkExchangeRequest.Link_Partners_Linkpage.value == 'http://www.your_website.com/your_links_page'){
document.LinkExchangeRequest.Link_Partners_Linkpage.style.backgroundColor='#B7CEDC';
alert("Please enter the URL of the page you will be adding our link to before proceeding.");
document.LinkExchangeRequest.Link_Partners_Linkpage.value="";
document.LinkExchangeRequest.Link_Partners_Linkpage.focus();
return false;
}else{
location.href='mailto:'+document.LinkExchangeRequest.Link_Partners_Emailto_Name.value+'@'+document.LinkExchangeRequest.Link_Partners_Emailto_URL.value+'?Subject=Link Exchange Request for '+document.LinkExchangeRequest.this_site_name.value+' from '+document.LinkExchangeRequest.Link_Partners_Sitename.value+'&body=The the authors of '+document.LinkExchangeRequest.Link_Partners_Sitename.value+' have requested a link exchange with '+document.LinkExchangeRequest.this_site_name.value+'.%0D%0A%0D%0AName of Website:%0D%0A'+document.LinkExchangeRequest.Link_Partners_Sitename.value+'%0D%0A%0D%0APlease Link to This Page:%0D%0A'+document.LinkExchangeRequest.Link_Partners_Linkto.value+'%0D%0A%0D%0ATitle Text of Link:%0D%0A'+document.LinkExchangeRequest.Link_Partners_Linktext.value+'%0D%0A%0D%0ADescription Text of Link:%0D%0A'+document.LinkExchangeRequest.Link_Partners_Description.value+'%0D%0A%0D%0AA link to '+document.LinkExchangeRequest.this_site_name.value+' will be added to:%0D%0A'+document.LinkExchangeRequest.Link_Partners_Linkpage.value;
}
}
function fourdigits(number){
return (number < 1000) ? number + 1900 : number;}
today =  days[now.getDay()] + ", " + months[now.getMonth()] + " " + date + suffix + ", " + (fourdigits(now.getYear()));
thisyear = (fourdigits(now.getYear()));

// Create static webpage widths...
var prewidth = '800';
var width = screen.width;
var margin = (parseInt(width)-prewidth);
var margin = (parseInt(margin)/2);
if(width == width){
var MaxWidth = "<style type=\"text/css\">body{margin-left:"+margin+"px;margin-right:"+margin+"px;}</style>";
} 
