
document.write("\<LINK REL=STYLESHEET HREF=\"../css/pc.css\">");


 // Put the cursor in the first text field and select contents, if any
function initializeUI(f,e) {
  	document[f][e].focus(); //alert(document[f][e]);
	document[f][e].select();
}

//spawn window function
function spawnWindow(theURL,winName,properties) { 
  window.open(theURL,winName,properties);
}


//form validation
function Checkfields()
{
  if(document.inputForm.email.value == ""){
		alert("please enter your email address");
		return false;}		
}

function srchchk(minchars) {
if(document.form3.keyword.value.length < minchars) {
	alert('Please enter a keyword in the search field.')
return false; }
else
return true; }
//resize window to fit detail image for press
function getGProperties2(imageName) { 
   var  Gproperties2 = "<html><head><title>Press</title><script language='JavaScript'>function myResize(){"+
   "var imgW = eval(myImage.width + 36);var imgH = eval(myImage.height + 90);"+
   " if (navigator.appName.indexOf('Netscape') != -1) {  window.innerWidth = imgW; window.innerHeight = imgH;}"+
   "else{ window.resizeTo(imgW, imgH);}"+
"}</script></head><body bgColor='#ffffff' leftmargin='0' topmargin='0' marginheight='0' marginwidth='0' onload='myResize();'><center><img src='../img/spacer.gif' height='10' width='1' border='0'><br><img src='../img/prs/big/"+imageName+"'  border='0' name='myImage'></center><div align='right'><a href='javascript:window.close();' style='font:11px arial; color:#333;'>close window</a>&nbsp;&nbsp;</div><br></body></html>";
   return Gproperties2; 
   } 
   
function bigPic(imageName) {
var newWindow = window.open("","mySwin","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=800,height=800");
newWindow.document.write(getGProperties2(imageName));
newWindow.document.close();
newWindow.focus();
}

function openbed(theURL) { 
  window.open(theURL,'bedship','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=,resizable=,height=170,width=570');
}