function embedFlash( hasRequestedVersion, flash, version, width, height, bgcolor ){
	
	if (hasRequestedVersion!=true) {

		document.write('<h2 class="bold">Get Macromedia Flash now</h2><img src="http://welcome.hp-ww.com/img/s.gif" width="1" height="4" alt="">');
		document.write('<br>To view the following movie you must have the Flash Player installed on your system.<br><img src="http://welcome.hp-ww.com/img/s.gif" width="1" height="4" alt="">');
		document.write('<br><span class="color000000"> &raquo;&nbsp;</span><a href="http://www.macromedia.com/go/getflashplayer/">Download Flash now</a><br><br>');

	}
	else
		document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+version+',0,0,0" width="'+width+'" height="'+height+'" id="main" align="middle"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="'+flash+'" /><param name="quality" value="high" /><param name="bgcolor" value="'+bgcolor+'" /><embed src="'+flash+'" quality="high" bgcolor="'+bgcolor+'" width="'+width+'" height="'+height+'" name="main" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>');
}

function popWin(theURL,winWidth,winHeight,showLocation,showMenu,scrollWin,resizeWin) {
	var winX = (screen.width - winWidth) / 2;
	var winY = (screen.height - winHeight) / 2;
	windowAttributes= ('width=' + winWidth + ',height=' + winHeight + 'location=' + 'showLocation' + ',menubar=' + showMenu + ',scrollbars=' + scrollWin + ",resizable=" + resizeWin + ",left=" + winX + ",top=" + winY);
	window.open(theURL, "", windowAttributes);
}


function isValidEmail(email){ 
    var RegExp = /^((([a-z]|[0-9]|!|#|$|%|&|'|\*|\+|\-|\/|=|\?|\^|_|`|\{|\||\}|~)+(\.([a-z]|[0-9]|!|#|$|%|&|'|\*|\+|\-|\/|=|\?|\^|_|`|\{|\||\}|~)+)*)@((((([a-z]|[0-9])([a-z]|[0-9]|\-){0,61}([a-z]|[0-9])\.))*([a-z]|[0-9])([a-z]|[0-9]|\-){0,61}([a-z]|[0-9])\.)[\w]{2,4}|(((([0-9]){1,3}\.){3}([0-9]){1,3}))|(\[((([0-9]){1,3}\.){3}([0-9]){1,3})\])))$/ 
    if(RegExp.test(email)){ 
        return true; 
    }else{ 
        return false; 
    } 
} 

function checkField(){ 
    var frm = document.form1
	var error = ""; 
    
	if(!isValidEmail(frm.flexfield1.value)){ 
        error = "Y"; 
    } 
    if(error != ""){ 
        showLayer('error');
		return false;
    }else{ 
		hideLayer('error');
		return true;
    } 
} 

function hideLayer( whichLayer ) {
	if(whichLayer.length < 1) { return; }
	document.getElementById(whichLayer).style.display = "none";
}
function showLayer( whichLayer ) {
	if(whichLayer.length < 1) { return; }
	document.getElementById(whichLayer).style.display = "block";
}
