function openAcrobatWindow(theURL) { 
	var winName = "Alwind";
	var features='scrollbars=yes,resizable=yes,width=600,height=500';
	theURL = "_printAcrobat.asp?product=" + theURL;
  	window.open(theURL,winName,features);
}
function openFlashWindow(theURL) { 
	var winName = "Alwind";
	var features='scrollbars=no,resizable=yes,width=600,height=500';
	theURL = "flashdoc.asp?product=" + theURL;
  	window.open(theURL,winName,features);
}
function openFPaperWindow(theURL) { 
	var winName = "Alwind";
	var features='scrollbars=no,resizable=yes,width=600,height=500';
	theURL = "flashdoc.asp?product=" + theURL;
  	window.open(theURL,winName,features);
}

function loadStateList(fid,cname)	{
	fid.length = 0 ;
	var selState = '';
	var selCountry = '';
	//alert(cname);
	if(cname=='US')	{
		fid.options[0] = new Option('Please Select A State', '');
		fid.options[1] = new Option('=========================', '');
		fid.options[2] = new Option('Alabama','AL');fid.options[3] = new Option('Alaska','AK');fid.options[4] = new Option('Arizona','AZ');fid.options[5] = new Option('Arkansas','AR');fid.options[6] = new Option('California','CA');fid.options[7] = new Option('Colorado','CO');fid.options[8] = new Option('Connecticut','CT');fid.options[9] = new Option('Delaware','DE');fid.options[10] = new Option('District of Columbia','DC');fid.options[11] = new Option('Florida','FL');fid.options[12] = new Option('Georgia','GA');fid.options[13] = new Option('Hawaii','HI');fid.options[14] = new Option('Idaho','ID');fid.options[15] = new Option('Illinois','IL');fid.options[16] = new Option('Indiana','IN');fid.options[17] = new Option('Iowa','IA');fid.options[18] = new Option('Kansas','KS');fid.options[19] = new Option('Kentucky','KY');fid.options[20] = new Option('Louisiana','LA');fid.options[21] = new Option('Maine','ME');fid.options[22] = new Option('Maryland','MD');fid.options[23] = new Option('Massachusetts','MA');fid.options[24] = new Option('Michigan','MI');fid.options[25] = new Option('Minnesota','MN');fid.options[26] = new Option('Mississippi','MS');fid.options[27] = new Option('Missouri','MO');fid.options[28] = new Option('Montana','MT');fid.options[29] = new Option('Nebraska','NE');fid.options[30] = new Option('Nevada','NV');fid.options[31] = new Option('New Hampshire','NH');fid.options[32] = new Option('New Jersey','NJ');fid.options[33] = new Option('New Mexico','NM');fid.options[34] = new Option('New York','NY');fid.options[35] = new Option('North Carolina','NC');fid.options[36] = new Option('North Dakota','ND');fid.options[37] = new Option('Ohio','OH');fid.options[38] = new Option('Oklahoma','OK');fid.options[39] = new Option('Oregon','OR');fid.options[40] = new Option('Pennsylvania','PA');fid.options[41] = new Option('Rhode Island','RI');fid.options[42] = new Option('South Carolina','SC');fid.options[43] = new Option('South Dakota','SD');fid.options[44] = new Option('Tennessee','TN');fid.options[45] = new Option('Texas','TX');fid.options[46] = new Option('Utah','UT');fid.options[47] = new Option('Vermont','VT');fid.options[48] = new Option('Virginia','VA');fid.options[49] = new Option('Washington','WA');fid.options[50] = new Option('West Virginia','WV');fid.options[51] = new Option('Wisconsin','WI');fid.options[52] = new Option('Wyoming','WY');	if(selCountry == 'US') {fid.value = selState;}
	} else if (cname=='CA')	{
		fid.options[0] = new Option('Please Select A Province', '');
		fid.options[1] = new Option('=========================', '');
		fid.options[2] = new Option('Alberta','AB');fid.options[3] = new Option('British Columbia','BC');fid.options[4] = new Option('Manitoba','MB');fid.options[5] = new Option('New Brunswick','NB');fid.options[6] = new Option('Newfoundland and Labrador','NL');fid.options[7] = new Option('Northwest Territories','NT');fid.options[8] = new Option('Nova Scotia','NS');fid.options[9] = new Option('Nunavut','NU');fid.options[10] = new Option('Ontario','ON');fid.options[11] = new Option('Prince Edward Island','PE');fid.options[12] = new Option('Quebec','QC');fid.options[13] = new Option('Saskatchewan','SK');fid.options[14] = new Option('Yukon Territory','YT');		if(selCountry == 'CA') {fid.value = selState;}
	}
	else if (cname=='NULL') 	{fid.options[0] = new Option('USA & Canada Only', '');  }
	else if (cname=='UNKNOWN') 	{fid.options[0] = new Option('Select Country First', '');}	
}

function chkCountry()	{
	cid = document.getElementById('Country');
	fid = document.getElementById('State');
	rid = document.getElementById('R_State');
	if(cid.value == '')			{loadStateList(fid,'UNKNOWN');	fid.disabled = true;	rid.className='form'}
	else if(cid.value=='296')	{loadStateList(fid,'usa'); 		fid.disabled = false;	if(rid.className != 'error') {rid.className='req';}}
	else if(cid.value=='48')	{loadStateList(fid,'canada');  	fid.disabled = false;	if(rid.className != 'error') {rid.className='req';}}
	else if(cid.value=='US')	{loadStateList(fid,'US'); 		fid.disabled = false;	if(rid.className != 'error') {rid.className='req';}}
	else if(cid.value=='CA')	{loadStateList(fid,'CA');  	fid.disabled = false;	if(rid.className != 'error') {rid.className='req';}}
	else						{loadStateList(fid,'NULL'); 	fid.disabled = true;	rid.className='form'}
}
function blurEvent(ele,eletype,rowID)	{
		row = document.getElementById(rowID);
		if((row.className=='form') || (row.className=='req'))	{
			if(eletype=='input')			{changeClass(ele,'entryfield');}
			if(eletype=='select')			{changeClass(ele,'dropdown');}
			if(eletype=='select_job')		{changeClass(ele,'dropdown_job');}
			if(eletype=='textarea')			{changeClass(ele,'textarea');}
			if(eletype=='radio')			{changeClass(ele,'radio');}
		} 
		else if (row.className=='errorRowActive')	{chkReqVal(ele,rowID,'error','form');}
	}
	
	
	function focusEvent(ele,eletype,rowID)	{
		row = document.getElementById(rowID);
		if((row.className=='form') || (row.className=='req'))	{
			if(eletype=='input')			{changeClass(ele,'entryfieldActive');}
			if(eletype=='select')			{changeClass(ele,'dropdownActive');}
			if(eletype=='select_job')		{changeClass(ele,'dropdownActive_job');}
			if(eletype=='textarea')			{changeClass(ele,'textareaActive');}
			if(eletype=='radio')			{changeClass(ele,'radioActive');}
		} 
		else if (row.className=='error')	{changeRowClass(rowID,'errorRowActive');}
	}