﻿function toggleField(obj,val)
{
    
    if(obj.value == val)
    {
	    obj.value = "";
    }
    else if(obj.value == "")
    {
	    obj.value = val;
    }
}
function swapImage(obj,val)
{
    if(document.images){
        obj.src = val;
    }
}

function openWindow(url,width,height)
{
    
   var winl = (screen.width - width) / 2;
   var wint = (screen.height - height) / 2;
   winprops = 'height='+height+',width='+width+',top='+wint+',left='+winl+',scrollbars=yes';
   window.open(url, "", winprops)

}

function popup(page) {
   var features = 'directories=no,menubar=no,status=no,titlebar=no,toolbar=no,scrollbars=yes,width=300,height=460';
   var mypopup = window.open(page, '', features);
}