
function popup(popup_link)
{
    xxx=window.open(popup_link, 'tinywindow', 'scrollbars=yes,menubar=no,resizable=yes,location=no,width=1015,height=760');
    xxx.focus();
}

function popup_with_address(popup_link)
{
    xxx=window.open(popup_link, 'tinywindow', 'scrollbars=yes,menubar=no,resizable=yes,location=yes,width=1015,height=760');
    xxx.focus();
}

function popupsize(popup_link,width,height)
{
    pr=window.open(popup_link, 'tinywindow', 'scrollbars=yes,menubar=no,resizable=no,location=no,width='+width+',height='+height);
    pr.focus();
}


function print_window(link)
{
    link = link + '&printit=yes'
    new_print_window=window.open(link, 'printwindow', 'scrollbars=yes,menubar=no,resizable=yes,location=no,width=820,height=600,screenX=50,screenY=100');
    new_print_window.focus();
}

function newWindow(file,window) 
{
    msgWindow=open(file,window,'resizable=no,location=no,menubar=no,scrollbar=yes,width=430,height=380,screenX=10,screenY=10');
    if (msgWindow.opener == null) 
    {
        msgWindow.opener = self;
    }
    msgWindow.focus();
}



function getRadioValue(radioObject)
{
    var value = false

    if (radioObject.checked == true) 
    {
        return true
    }
    for (var i=0; i<radioObject.length; i++) 
    {
        if (radioObject[i].checked) 
        {
            value = radioObject[i].value
            break
        }
    }
    return value;		
}


var submitcount=0;

function checkSubmitClicks() 
{
    if (submitcount == 0) 
    {
        submitcount++;
        return true;
    } 
    else 
    {
        alert("This form has already been submitted.\nPlease wait while it is being processed.\nThanks!");
        return false;
    }
}


function preview_image()
{
    var img = form1.portfolio_img.value;
    if (img!='') window.open(img);
    else alert('There\'s No File To Preview! Please Select a File.');
}

n4=(document.layers);
n6=(document.getElementById&&!document.all);
ie=(document.all);
