function activate(sName, sWidth, sHeight){
    document.write('<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" WIDTH="'+sWidth+'" HEIGHT="'+sHeight+'">');
    document.write('<PARAM NAME="movie" VALUE="'+sName+'">');
    document.write('<PARAM NAME="quality" VALUE="high"> ');
    document.write('<PARAM NAME="menu" VALUE="false"> ');
    document.write('<PARAM NAME="wmode" VALUE="transparent"> ');
    document.write('<EMBED SRC="'+sName+'" wmode="transparent" menu="false" QUALITY="high" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" TYPE="application/x-shockwave-flash" WIDTH="'+sWidth+'" HEIGHT="'+sHeight+'"></EMBED>');
    document.write('</OBJECT>');
}
function writemail(first,second,name) {
	document.write('<a href="mailto:'+ name + ' <' + first + '@' + second + '>">' + name + '</a>');
}
function openinfo(link) {
newWindow = window.open(link, 'undefined', 'scrollbars,resizable,width=680,height=320,toolbars');
}

function copeninfo(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "','toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1,width=800,height=600,left = 112,top = 84');");
}

function opencolor(color) {
newWindow = window.open(color, 'undefined', 'width=366,height=270,toolbars');
}

function opentextr(textr) {
newWindow = window.open(textr, 'undefined', 'width=566,height=345,toolbars');
}

function loaded() {
        iframeLoaded++;
}
function loadup(nums){
        loadframe.location.href='http://g3.sma-promail.com/v5fmsnet/oe.asp?parex1' + nums + '';
        looper(nums);
}
function looper(num) {
        countload++;
        if(iframeLoaded <= 1) {
                if(countload < 10) {
                        setTimeout("looper("+num+")", 1000);
                }
                else {
                        alert('Error! Could not contact the login server!');
                        countload = 0;
                }
        }
        else {
                eval("document.Login"+num+".submit();");
        }
}

function loader(tx,ty) {
        loadx = tx;
        loady = ty;
        var lframe = document.getElementById('loadframe');
        lframe.src = 'http://www.parex.com/loader.cgi?loadx=' + loadx + '&loady=' + loady;
}

function popUp(URL) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "','toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=1,width=698,height=507');");
}

function popUpx(URL,x,y) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "','toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=1,resizable=1,width=' + x + ',height=' + y + '');");
}

