var flashObjArr = new Array();
function writeFlashObjs()
{
    for (var i=0;i<flashObjArr.length;i++)
    {
       //flashContainerDIV_ID,height,width,targetFlashFile,altText,flashVars,showMenu:Boolean, isTransparent:Boolean
        thisFlashArr = flashObjArr[i].split(",") ;
		
		if(document.getElementById(thisFlashArr[0])!=null){//checks to see if the div is on the page
		         
        flashHTML  = "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" width=\"" + thisFlashArr[2] + "\" height=\"" + thisFlashArr[1] + "\" id=\"flash_" + thisFlashArr[0] + "\" align=\"middle\" alt=\"" + thisFlashArr[4] + "\">" ;
        flashHTML += "<param name=\"allowScriptAccess\" value=\"sameDomain\" />" ;
        flashHTML += "<param name=\"quality\" value=\"high\" />" ;
        flashHTML += "<param name=\"movie\" value=\"" + thisFlashArr[3] + "\" />" ;
        flashHTML += "<param name=\"FlashVars\" value=\"" + thisFlashArr[5] + "\" />" ;
		if (thisFlashArr[6]=="false"){//if showMenu array element set to false
			flashHTML += "<param name=\"menu\" value=\"false\" />" ;
		}
        if (thisFlashArr[7] =="true") {//if isTransparent array element set to true
			flashHTML += "<param name=\"wmode\" value=\"transparent\" />" ;
			}
        flashHTML += "<embed src=\"" + thisFlashArr[3] + "\" quality=\"high\" width=\"" + thisFlashArr[2] + "\" height=\"" + thisFlashArr[1] + "\" flashVars=\"" + thisFlashArr[5] + "\" name=\"flash_" + thisFlashArr[0] + "\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\"" ;
       	if (thisFlashArr[6]=="false"){//if showMenu array element set to false
			flashHTML += " menu=\"false\"" ;
		}
	   if (thisFlashArr[7] =="true") {//if isTransparent array element set to true
			flashHTML += " wmode=\"transparent\"" ;
			}
        flashHTML += " />" ;
        flashHTML += "</object>" ;
        thisContainerObj = document.getElementById(thisFlashArr[0]);
        thisContainerObj.innerHTML = flashHTML ;
    	}
	}
}

function submitRecruitmentInfo(){
    formObj = document.forms["frmRecruitment"] ;
     if ((formObj.txtFullName.value=="")||(formObj.txtContactDetails.value=="")||(formObj.txtPreviousExperience.value=="")||(document.getElementById('file').value == "")){
		alert("Please enter your Full Name, Contact Details\nAny Previous Experience you may have had and upload a C.V.");
		}else {
			formObj.submit();
			}
}


function openWindow(theURL,winName,features) { //v2.0
 
  window.open(theURL,winName,features);

}


function confirmMe(){
//if (confirm("Please make sure you complete the payment process on the protx website\nand return to the reflections website\nor your transaction will not be processed completly")){
window.location=("chkOut/post2protxRef.php");
//window.location=("../scripts/logout.asp");
	//}
}
function confirmed(){
//if (confirm("Please make sure you complete the payment process on the protx website\nand return to the reflections website\nor your transaction will not be processed completly")){
window.location=("do-db.php");
//window.location=("../scripts/logout.asp");
	//}
}
