/* Menu Images */
homeOff = new Image();
homeOff.src = "/images/mhome.jpg";
homeOn = new Image();
homeOn.src = "/images/mhomeon.jpg";

propsOff = new Image();
propsOff.src = "/images/mprop.jpg";
propsOn = new Image();
propsOn.src = "/images/mpropon.jpg";

mbuyersOff = new Image();
mbuyersOff.src = "/images/mbuyers.jpg";
mbuyersOn = new Image();
mbuyersOn.src = "/images/mbuyerson.jpg";

mcontactOff = new Image();
mcontactOff.src = "/images/mcontact.jpg";
mcontactOn = new Image();
mcontactOn.src = "/images/mcontacton.jpg";

mlinkOff = new Image();
mlinkOff.src = "/images/mlink.jpg";
mlinkOn = new Image();
mlinkOn.src = "/images/mlinkon.jpg";

msellersOff = new Image();
msellersOff.src = "/images/msellers.jpg";
msellersOn = new Image();
msellersOn.src = "/images/msellerson.jpg";

maffiliatesOff = new Image();
maffiliatesOff.src = "/images/maffiliates.jpg";
maffiliatesOn = new Image();
maffiliatesOn.src = "/images/maffiliateson.jpg";

maboutOff = new Image();
maboutOff.src = "/images/mabout.jpg";
maboutOn = new Image();
maboutOn.src = "/images/mabouton.jpg";

/* Menu Images */

function doStep (thisstep)
	{
		step = document.getElementById("step1").style;
		step.display = 'none';
		step = document.getElementById("step2").style;
		step.display = 'none';
		step = document.getElementById("step3").style;
		step.display = 'none';
		step = document.getElementById("step4").style;
		step.display = 'none';
		step = document.getElementById("step5").style;
		step.display = 'none';
		step = document.getElementById("step6").style;
		step.display = 'none';
		
		step = document.getElementById(thisstep).style;
		step.display = 'block';
		}

function flipIT (flipsection)
	{
		flipME = document.getElementById(flipsection).style;
	
		if (flipME.display == 'block')
			{
				flipME.display = 'none';
			} else {
					flipME.display = 'block';
					}  
	}

function writeConsole(content) 
	{
	holdtext.innerText = eval(content + ".innerHTML");
	Copied = holdtext.createTextRange();
	Copied.execCommand("Copy");

	top.consoleRef=window.open('','myconsole',
		'width=550,height=200'
		+',menubar=0'
   		+',toolbar=1'
   		+',status=0'
   		+',scrollbars=1'
   		+',resizable=1');
	top.consoleRef.document.writeln(
 		'<html><head><link href="../sep_style.css" rel="stylesheet" type="text/css">' + 
 		'<style type="text/css">' + 
 		'.txt_web {display: none;}' +
 		'.txt_print {display: hide;}' +
 		'</style>' + 
 		'</head>' + 
 		'<body onLoad="window.print();window.close();" >' +
 		Copied.text +
 		'</body>' +
 		'</html>')
	top.consoleRef.document.close()
	}

function ClipBoard() 
{
holdtext.innerText = abq.innerText;
Copied = holdtext.createTextRange();
Copied.execCommand("Copy");
}

function valPropform ()
	{
		if (document.getElementById("").text == "") {
			}
			
			
	}
	
//Form Validation
function formCheck(formobj){
	//1) Enter name of mandatory fields
	var fieldRequired = Array("Name", "Message", "Email", "Telephone", "BestCallTime", "DayPhone", "EveningPhone", "BestCallTime");
	
	//2) Enter field description to appear in the dialog box
	var fieldDescription = Array("Name", "Message", "Email", "Telephone", "Best Call Time", "Day Phone Number", "Evening Phone", "Best Call Time");
	
	//3) Enter dialog message
	var alertMsg = "Please complete the following fields:\n";

	var l_Msg = alertMsg.length;

	for (var i = 0; i < fieldRequired.length; i++){
		
		var obj = formobj.elements[fieldRequired[i]];
		
		if (obj){
			switch(obj.type){
			
				case "select-one":
					
					if (obj.selectedIndex == -1 || obj.options[obj.selectedIndex].text == ""){
						alertMsg += " - " + fieldDescription[i] + "\n";
					}
					break;
					
				case "select-multiple":
					
					if (obj.selectedIndex == -1){
						alertMsg += " - " + fieldDescription[i] + "\n";
					}
					break;
				
				case "text":
				
				case "textarea":
					
					if (obj.value == "" || obj.value == null){
						alertMsg += " - " + fieldDescription[i] + "\n";
					}
					break;
					
				default:
					if (obj.value == "" || obj.value == null){
						alertMsg += " - " + fieldDescription[i] + "\n";
					}
			}//End switch
		}//End If
}//End function

if (alertMsg.length == l_Msg){
	return true;
	}else{
		alert(alertMsg);
		return false;
		}
}
//-->
