

// Browser safe opacity handling function

function setOpacity( value ) {
 document.getElementById("styled_popup").style.opacity = value / 10;
 document.getElementById("styled_popup").style.filter = 'alpha(opacity=' + value * 10 + ')';
}

function fadeInMyPopup() {
 for( var i = 0 ; i <= 100 ; i++ )
   setTimeout( 'setOpacity(' + (i / 10) + ')' , 8 * i );
}

function fadeOutMyPopup() {
 for( var i = 0 ; i <= 100 ; i++ ) {
   setTimeout( 'setOpacity(' + (10 - i / 10) + ')' , 8 * i );
 }

 setTimeout('closeMyPopup()', 800 );
}

function closeMyPopup() {
 document.getElementById("styled_popup").style.display = "none"
}

function fireMyPopup() {
 setOpacity( 0 );
 document.getElementById("styled_popup").style.display = "block";
 fadeInMyPopup();
}
/*==========================================*/
function resumev()
{
frm=document.resume;

  if (frm.fullname.value == "")
  {
    alert("Please Enter Your Name.");
    frm.fullname.focus();
    return (false);
  } 
  if(frm.email.value=="")
	{	
		alert("Enter Your Email Address.");
		frm.email.focus();
		return false;
	}

	if (frm.email.value!="")
	{
		if(!emailInvalid(frm.email.value))
		{
			alert("Please Enter Valid Email Address.");
			frm.email.focus();
			return false;
		}
	}
   if (frm.phone.value == "")
  {
    alert("Enter Your Contact No.");
    frm.phone.focus();
    return (false);
  }
   if (frm.city.value == "")
  {
    alert("Enter Your City.");
    frm.city.focus();
    return (false);
  }
	if (frm.state.value == "")
	  {
		alert("Enter Your State.");
		frm.state.focus();
		return (false);
	  }
	if (frm.comments.value == "")
	  {
		alert("Enter Your Comments.");
		frm.comments.focus();
		return (false);
	  }
if(frm.filename.value=="")
	{	
		alert("Please Attach Your Coverletter");
		frm.filename.focus();
		return false;
	}

}
/*==========================================*/

/*==========================================*/
function emailInvalid(s)

{
	if(!(s.match(/^[\w]+([_|\.-][\w]{1,})*@[\w]{2,}([_|\.-][\w]{1,})*\.([a-z]{2,4})$/i) ))
        {
		return false;
	}
	else
		return true;
}


<!--
//InstantEngage Script Template//

//Page Variables - System Generated
var gURL_Server = "www.instantengage.com";
var gSSL_Port = 443;
var gAccount_ID = 1346;
var gPage_ID = 2157;
var gStatus = 1; // 1 - Browsing

function IE_load() 
{
	if (typeof IE_loading != 'undefined') {
		IE_loading();
	} else {
		if (document.getElementById) {
			var x = document.getElementById("HA_OfflineLogoDiv");
			if (x && typeof x.innerHTML != 'undefined'
				&& x.style && typeof x.style.display != 'undefined'
				) 
			{
				x.innerHTML = '';
				x.innerHTML = IESystemOfflineHTML;
				x.style.display = '';
			}
		}
	}
}

function IE_unload()
{
	if (typeof IE_unloading != 'undefined') {
		IE_unloading();
	}
}

function IE_resolveServerURL(SSLOption)
{
	var SSL_URL = "https://" + gURL_Server;
	if (gSSL_Port != 443)
	{
		SSL_URL += ":" + gSSL_Port;
	}
	var Normal_URL = "http://" + gURL_Server;
	var result = (window.location.href.indexOf('https') != -1)? SSL_URL : Normal_URL;
	if (SSLOption == "true")
	{
		result = SSL_URL;
	} else if (SSLOption == "false")
	{
		result = Normal_URL;
	}
	return result;
}


//User-Defined Variables
var CustomTemplate = "";
var InitiateIconTimeout = 10; //secs
var InitiateIconVAlign = "bottom"; // "top", "middle", "bottom"
var InitiateIconHAlign = "right"; // "left", "center", "right"
var ChatRequestAutoPopupInterval = 0; // mins - 0 to disable.
var ChatRequestPopupUponInitiate = true;
var SkipVisitorChatRequestPreChat = false;
var RequestForEmail = true;
var SkipOperatorProductSelection = true;
var ChatWindowWidth = 600;
var ChatWindowHeight = 445;

var InitiateImageSrc = "http://www.instantengage.com/images_store/set6_3.gif";
var OperatorOnlineImageSrc = "http://www.instantengage.com/images_store/set6_1.gif";
var OperatorOfflineImageSrc = "http://www.instantengage.com/images_store/set6_2_white.gif";

var OperatorOfflineEmailAddress = "tnelson@prefcapital.com";
var OperatorOfflineEmailSubject = "Questions about Preferred Capital Alliance, Inc. Services";
var VisitorDefaultName = ""; // The server can actually place the actual Name here
var VisitorDefaultEmail = ""; // The server can actually place the actual Email here

var ChatRequestTimeout = 60; // secs
var CustomMsgOperatorOnlineBusy = ""; // Leave Empty for default
var CustomMsgOperatorOffline = ""; // Leave Empty for default
var CustomMsgLeaveMessage = ""; // Leave Empty for default

var OperatorOfflineRedirectHref = ""; // HTML <a> tag : href. Leave empty for non-usage.
var OperatorOfflineRedirectHrefTarget = "_blank"; // HTML <a> tag : target. Leave empty for non-usage.

var IESystemOfflineHTML = "<a href=\"mailto:"+OperatorOfflineEmailAddress+"\">Leave Message</a>";

var DisableFlashInstallPrompt = true;
var PopupSSLOption = "detect"; // "true", "false", "detect"
var IncreaseUpdateInterval = 0; // secs


// System Generated - Do not edit
document.write('<' + 'script' + ' language="javascript" src="' + IE_resolveServerURL() + '/IE_Utility.js"></' + 'script' + '>');

//-->
