 var MONTH_NAMES=new Array('January','February','March','April','May','June','July','August','September','October','November','December','Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec');
var targetURL;
var tempsendmail;
var catSelected;
var topicSelect;
function LZ(x) {return(x<0||x>9?"":"0")+x} 
// ------------------------------------------------------------------
// formatDate (date_object, format)
// Returns a date in the output format specified.
// ------------------------------------------------------------------
function formatDate(date,format) {
	format=format+"";
	var result="";
	var i_format=0;
	var c="";
	var token="";
	var y=date.getYear()+"";
	var M=date.getMonth()+1;
	var d=date.getDate();
	var H=date.getHours();
	var m=date.getMinutes();
	var s=date.getSeconds();
	var yyyy,yy,MMM,MM,dd,hh,h,mm,ss,ampm,HH,H,KK,K,kk,k;
	// Convert real date parts into formatted versions
	var value=new Object();
	if (y.length < 4) {y=""+(y-0+1900);}
	value["y"]=""+y;
	value["yyyy"]=y;
	value["yy"]=y.substring(2,4);
	value["M"]=M;
	value["MM"]=LZ(M);
	value["MMM"]=MONTH_NAMES[M-1];
	value["d"]=d;
	value["dd"]=LZ(d);
	value["H"]=H;
	value["HH"]=LZ(H);
	if (H==0){value["h"]=12;}
	else if (H>12){value["h"]=H-12;}
	else {value["h"]=H;}
	value["hh"]=LZ(value["h"]);
	if (H>11){value["K"]=H-12;} else {value["K"]=H;}
	value["k"]=H+1;
	value["KK"]=LZ(value["K"]);
	value["kk"]=LZ(value["k"]);
	if (H > 11) { value["a"]="PM"; }
	else { value["a"]="AM"; }
	value["m"]=m;
	value["mm"]=LZ(m);
	value["s"]=s;
	value["ss"]=LZ(s);
	while (i_format < format.length) {
		c=format.charAt(i_format);
		token="";
		while ((format.charAt(i_format)==c) && (i_format < format.length)) {
			token += format.charAt(i_format++);
			}
		if (value[token] != null) { result=result + value[token]; }
		else { result=result + token; }
		}
	return result;
	}

// ------------------------------------------------------------------
// getDueDate ()
// Returns a current date plus 5.
// ------------------------------------------------------------------

function getDueDate(){
	var curDate = new Date();
	nomilli=Date.parse(curDate);
	curDate.setTime(nomilli+5*24*60*60*1000);
	var year = curDate.getUTCFullYear();
	var month = curDate.getUTCMonth()+1;
	month = LZ(month);
	var day = curDate.getUTCDate();
	day = LZ(day);
	var newDate = month + "/" + day + "/" + year;
	return newDate;
}

var inputArray = new Array(9);
var message = "";
var inputFields = new Array(9);
inputFields[0] = "Your Name";
inputFields[1] = "Company Name";
inputFields[2] = "City";
inputFields[3] = "State/Province";
inputFields[4] = "Country";
inputFields[5] = "Email Address";
inputFields[6] = "Category";
inputFields[7] = "Topic";
inputFields[8] = "Question or Comment";
 

function verifyThis()
{
	catSelected=document.ge_power_contact_us.Category.options[document.ge_power_contact_us.Category.selectedIndex].value;
	topicSelect=document.ge_power_contact_us.Topic.options[document.ge_power_contact_us.Topic.selectedIndex].value;
	
	
 	(document.ge_power_contact_us.Name.value!='')?inputArray[0]='good':inputArray[0]='bad';
	(document.ge_power_contact_us.Company.value!='')?inputArray[1]='good':inputArray[1]='bad';
	(document.ge_power_contact_us.City.value!='')?inputArray[2]='good':inputArray[2]='bad';
 	(document.ge_power_contact_us.State.value!='')?inputArray[3]='good':inputArray[3]='bad';
	(document.ge_power_contact_us.Country.options[document.ge_power_contact_us.Country.selectedIndex].value!='')?inputArray[4]='good':inputArray[4]='bad';
 	(document.ge_power_contact_us.email.value!='')?inputArray[5]='good':inputArray[5]='bad';
	(document.ge_power_contact_us.Category.options[document.ge_power_contact_us.Category.selectedIndex].value!='')?inputArray[6]='good':inputArray[6]='bad';
	(document.ge_power_contact_us.Topic.options[document.ge_power_contact_us.Topic.selectedIndex].value!='')?inputArray[7]='good':inputArray[7]='bad'; 
	(document.ge_power_contact_us.Question.value!='')?inputArray[8]='good':inputArray[8]='bad';
	
 	
	var allGood=true;
	for (counter=0;counter<inputArray.length;counter++)
	{
		if (inputArray[counter]!='good')
		{
			message += "\n" + inputFields[counter];
			allGood=false;
		}//end if
	}//end for counter
 	if (allGood)
	{
		changeLocation();
	}
	else
	{
		alert("The following fields have either been left blank or not entered properly:\t\n"+message);
		message="";
	}
		
}//end verifyThis()

function changeLocation()
{
 remove();
 
 <!--BEGIN NEW set of Subjects of Diffrent Support Centrals-->
var sub16645 = "SC CATJBADCOMMBGGEF";
var sub18041 = "SC EXPHBDGJJCOMMBIAEB";
var sub18274 = "SC CATFFCACOMMBICHE";
var sub22366 = "SC EXPBAJDEGACOMMCCDGG";
var sub24117 = "SC CATEEGGECOMMCEBBH;EXPCEGJBD;EXPFCJCI";
var sub24118 = "SC CATEEGGECOMMCEBBI;EXPEJJHCJ;EXPCEGJBD";
var sub24377 = "SC EXPCBFCICCOMMCEDHH";
var sub26058 = "SC CATEGHBCCOMMCGAFI";
var sub32578 = "SC CATDCEDDCOMMDCFHI";
//var sub39008 = "SC CATEIGIHCOMMDJAAI";
var sub39008 = "SC CATEIGIHCOMMDJAAI;EXPCEJEDIJ";
var sub45341 = "SC CATFBCDFCOMMEFDEB";
var sub49259 = "SC CATFFDAGCOMMEJCFJ";
 <!--END of Subjects of Diffrent Support Centrals-->
 

	catSelected=document.ge_power_contact_us.Category.options[document.ge_power_contact_us.Category.selectedIndex].value;
	topicSelect=document.ge_power_contact_us.Topic.options[document.ge_power_contact_us.Topic.selectedIndex].value;


//alert(catSelected+"       "+topicSelect);
		//==============for Air Quality  ======
 
 
		if (catSelected == "Air Quality"){			
			if ((topicSelect == "Air Testing") || (topicSelect == "Boiler Optimization") || (topicSelect == "Monitoring & Diagnostics")
			|| (topicSelect == "NOx Control")  || (topicSelect == "Research & Development") || (topicSelect == "General Information") ){
				document.ge_power_contact_us.subject.value = "SC CATFFDAGCOMMEJCFJ";	
				//document.ge_power_contact_us.subject.value = "SC EXPBBCDDJECOMMEJCFJ";
				//document.ge_power_contact_us.subject.value = "SC CATEEGGECOMMEJCFJ;EXPBBCDDJE";
				
				xmlCode_Without_Form();
			}
		}
  		else if (catSelected == "Environmental Services"){			
			if (topicSelect == "General Information"){
				document.ge_power_contact_us.subject.value ="SC CATFFDAHCOMMEJCFJ";
				//document.ge_power_contact_us.subject.value = "SC EXPBBCDDJECOMMEJCFJ";
				xmlCode_Without_Form();
			}
		}

 		else if (catSelected == "Oil and Gas"){			
			if ((topicSelect == "PII") || (topicSelect == "Pipeline Inspection") || (topicSelect == "Pipeline Integrity Services")){
				document.ge_power_contact_us.subject.value = sub18041;
				xmlCode_Without_Form();
			} else {
				document.ge_power_contact_us.subject.value = sub22366;
				xmlCode_Without_Form();
			
			}
		//==============for wind energy ======
		} else if (catSelected == "Wind Energy"){
			document.ge_power_contact_us.subject.value = sub45341;
			//xmlCode_Without_Form();
			//document.ge_power_contact_us.subject.value ="SC EXPBDHEDAECOMMBGGI";	
			xmlCode_Wind_Energy();	
		}
		//==============for Nuclear Power - All Inquiries=========
		 else if (catSelected == "Nuclear Power"){
			if(topicSelect == "All Inquiries"){
			
 				//document.ge_power_contact_us.subject.value = sub24118;
				document.ge_power_contact_us.subject.value = "SC EXPCDCHFBICOMMCEBBI";
				
				xmlCode_Without_Form(); 
			}
		}

		// =================for Gas Turbine  ========
		 else if (catSelected == "Gas Turbines"){
			if(topicSelect == "Training"){
 				document.ge_power_contact_us.subject.value = sub26058;
				xmlCode_Without_Form(); 
			}
			else if(topicSelect == "Contractual Service Agreements"){
 				document.ge_power_contact_us.subject.value = "SC CATFEJEECOMMEIHJD";
				xmlCode_Without_Form(); 
			}
			else if(topicSelect == "Large (>20MW) Heavy Duty"){
 				document.ge_power_contact_us.subject.value = "SC CATFEJEHCOMMEIHJD";
				xmlCode_Without_Form(); 
			}
			else if((topicSelect == "General Information") || (topicSelect == "Gasification Technology") || (topicSelect == "IGCC")){
 				document.ge_power_contact_us.subject.value = "SC CATFEJFACOMMEIHJD";
				xmlCode_Without_Form(); 
			}
			else if(topicSelect == "Aeroderivatives"){
 				document.ge_power_contact_us.subject.value = "SC CATFEJEDCOMMEIHJD";
				xmlCode_Without_Form(); 
			}
			
			else if(topicSelect == "Monitoring"){
 				document.ge_power_contact_us.subject.value = "SC CATFEJEICOMMEIHJD";
				xmlCode_Without_Form(); 
			}
			else if(topicSelect == "Small GTS (<20MW)"){
 				document.ge_power_contact_us.subject.value = "SC CATFEJEJCOMMEIHJD";
				xmlCode_Without_Form(); 
			}
			/*else if(topicSelect == "Gasification Technology"){
 				document.ge_power_contact_us.subject.value = "SC CATFEJEFCOMMEIHJD";
				xmlCode_Without_Form(); 
			}
			else if(topicSelect == "IGCC"){
 				document.ge_power_contact_us.subject.value = "SC CATFEJEGCOMMEIHJD";
				xmlCode_Without_Form(); 
			}*/
		}
 		//==============for Steam Turbines ======
		else if (catSelected == "Steam Turbines"){
			if(topicSelect == "Combined Cycle"){
				document.ge_power_contact_us.subject.value = "SC CATFEEJGCOMMEIDAF";
				xmlCode_Without_Form();	
			}
			else if(topicSelect == "Contractual Service Agreements"){
				document.ge_power_contact_us.subject.value = "SC CATFEEJHCOMMEIDAF";
				xmlCode_Without_Form();	
			}
			else if(topicSelect == "Industrial"){
				document.ge_power_contact_us.subject.value = "SC CATFEEJICOMMEIDAF";
				xmlCode_Without_Form();	
			}
			else if(topicSelect == "Large Fossil"){
				document.ge_power_contact_us.subject.value = "SC CATFEEJJCOMMEIDAF";
				xmlCode_Without_Form();		
			}
			else if(topicSelect == "Mechanical Drives"){
				document.ge_power_contact_us.subject.value = "SC CATFEFAACOMMEIDAF";
				xmlCode_Without_Form();		
			}
			else if(topicSelect == "General Information"){
				
				//	document.ge_power_contact_us.subject.value = "SC CATEEGGECOMMEIDAF;EXPFEIAF";
				//document.ge_power_contact_us.subject.value = "SC EXPFEIAFCOMMEIDAF";	
				
				//document.ge_power_contact_us.subject.value = "SC EXPBECADFGCOMMEIDAF";
				document.ge_power_contact_us.subject.value = "SC COMMEIDAFEXPCBBAFI";
					
																	
				xmlCode_Without_Form();		
			}
			else if(topicSelect == "Training"){
				document.ge_power_contact_us.subject.value = sub26058;
				xmlCode_Without_Form();		
			}
		}
		
		 else if (catSelected == "Customer Technical Training"){
			if(topicSelect == "All Inquiries"){
 				document.ge_power_contact_us.subject.value = sub26058;
				xmlCode_Without_Form(); 
			}
		}
		 else if (catSelected == "Supplier"){
			if(topicSelect == "All Inquiries"){
// 				document.ge_power_contact_us.subject.value =sub16645;
	//			xmlCode_Without_Form(); 
				create_HPSDCase(catSelected,topicSelect);
			}
		}
		 else if (catSelected == "Bently Nevada Asset Condition Monitoring"){
			if(topicSelect == "All Inquiries"){
 				document.ge_power_contact_us.subject.value ="SC CATFJGJJCOMMFFBHH";
				xmlCode_Without_Form(); 
			}
			else if (topicSelect == "Technical Services"){
				document.ge_power_contact_us.formname.value="ge_power_contact_us_bncm";
				document.ge_power_contact_us.subject.value="Bently Nevada Asset Condition Monitoring Technical Services";
 				 
			}
		}
		else if (catSelected == "Control Solutions - Plant and Turbine"){
			if(topicSelect == "All Inquiries"){
 				document.ge_power_contact_us.subject.value ="SC CATFJHAACOMMFFBHH";
				xmlCode_Without_Form(); 
			}
		}
		else if (catSelected == "Oilfield Technology"){
			if(topicSelect == "All Inquiries"){
 				document.ge_power_contact_us.subject.value ="SC CATFJHADCOMMFFBHH";
				xmlCode_Without_Form(); 
			}
		}
		else if (catSelected == "ORBIT Magazine"){
			if(topicSelect == "All Inquiries"){
 				document.ge_power_contact_us.subject.value ="SC CATFJHAECOMMFFBHH";
				xmlCode_Without_Form(); 
			}
		}  
		else if (catSelected == "Optimization and Control"){
			if(topicSelect == "All Inquiries"){
 				document.ge_power_contact_us.subject.value ="SC CATFJHAFCOMMFFBHH";
				xmlCode_Without_Form(); 
			}
		}
		
		else if (catSelected == "Reliability Consulting and Implementation Services"){
			if(topicSelect == "All Inquiries"){
 				document.ge_power_contact_us.subject.value ="SC CATFJHAGCOMMFFBHH";
				xmlCode_Without_Form(); 
			}
		}
		else if (catSelected == "Reuter Stokes Measurement Solutions"){
			if(topicSelect == "All Inquiries"){
 				document.ge_power_contact_us.subject.value ="SC CATFJHAHCOMMFFBHH";
				xmlCode_Without_Form(); 
			}
		}
		//==============for Solar ======
		else if (catSelected == "Solar"){
			document.ge_power_contact_us.subject.value = sub39008;
			//document.ge_power_contact_us.subject.value ="SC EXPBDHEDAECOMMBGGI";
			//xmlCode_Without_Form(); 	
			xmlCode_Solar_GeneralInfo();
		}
		//==============for Power Generation Parts  ======
		else if (catSelected == "Power Generation Parts"){
			if(topicSelect == "General Information"){
 				document.ge_power_contact_us.subject.value = sub18274;
				xmlCode_Without_Form(); 
			}
			else if(topicSelect == "Repairs Service Shops"){
   				document.ge_power_contact_us.subject.value = "SC CATFBGECCOMMBJCED";
				xmlCode_Without_Form(); 
			}
		}
		else if (catSelected == "Energy Management Systems"){
			if((topicSelect == "DMS") || (topicSelect == "Energy Management Systems") ||
			(topicSelect == "Substation Automation") ||(topicSelect == "Substation Monitoring") ){
 				document.ge_power_contact_us.subject.value = sub24377;
				xmlCode_Without_Form(); 
			}
		}
		else if (catSelected == "Software Applications"){
			if (topicSelect == "Telecommunications" || (topicSelect == "SCADA/EMS/DMS/ Outage Management") || (topicSelect== "GIS") ){
			//if(topicSelect == "General Information"){
  				document.ge_power_contact_us.subject.value = sub24377 ;
				xmlCode_Without_Form(); 
			}
			else if(topicSelect == "Optimization & Diagnostic"  || topicSelect == "Plant Performance" || topicSelect == "System 1 - Condition Monitoring"){
			document.ge_power_contact_us.subject.value = "SC CATFJHAICOMMFFBHH" ;
				xmlCode_Without_Form(); 
 			}

		}
		else if ((catSelected == "Transformers") || (catSelected == "Substation Automation") ||
				(catSelected == "Meters") || (catSelected == "Electrical Test Equipment") 	 ){
			if(topicSelect == "All Inquiries"){
 				document.ge_power_contact_us.subject.value =sub24377 ;
				xmlCode_Without_Form(); 
			}
		}
		
		
		else if (catSelected == "Jenbacher Gas Engines"){
			if(topicSelect == "Company Information"){
 				document.ge_power_contact_us.subject.value = "SC CATGAAIJCOMMBGAJI";
				xmlCode_Without_Form(); 
			}
			else if(topicSelect == "PR"){
 				document.ge_power_contact_us.subject.value = "SC CATFIGGBCOMMBGAJI";
				xmlCode_Without_Form(); 
			}
			else if(topicSelect == "Sales Africa, Middle East"){
 				document.ge_power_contact_us.subject.value = "SC CATFIGFFCOMMBGAJI";
				xmlCode_Without_Form(); 
			}
			else if(topicSelect == "Sales Asia, India"){
 				document.ge_power_contact_us.subject.value = "SC CATFIGFGCOMMBGAJI";
				xmlCode_Without_Form(); 
			} 
			else if(topicSelect == "Sales China"){
				document.ge_power_contact_us.subject.value = "SC EXPBHABIEICOMMBGAJI";
				xmlCode_Without_Form(); 			
			}
			else if(topicSelect == "Sales Denmark"){
 				document.ge_power_contact_us.subject.value = "SC CATFJFAHCOMMBGAJI";
				xmlCode_Without_Form(); 
			}
			else if(topicSelect == "Sales Eastern Europe"){
 				document.ge_power_contact_us.subject.value = "SC CATFIGFECOMMBGAJI";
				xmlCode_Without_Form(); 
			}
			else if(topicSelect == "Sales Germany"){
 				document.ge_power_contact_us.subject.value = "SC CATFJFAECOMMBGAJI";
				xmlCode_Without_Form(); 
			}
			else if(topicSelect == "Sales Italy"){
 				document.ge_power_contact_us.subject.value = "SC CATFJFAFCOMMBGAJI";
				xmlCode_Without_Form(); 
			}
			else if(topicSelect == "Sales Netherlands"){
 				document.ge_power_contact_us.subject.value = "SC CATFJFAGCOMMBGAJI";
				xmlCode_Without_Form(); 
			}
			else if(topicSelect == "Sales North America"){
 				document.ge_power_contact_us.subject.value = "SC CATFIGFHCOMMBGAJI";
				xmlCode_Without_Form(); 
			} 
			else if(topicSelect == "Sales South America"){
 				document.ge_power_contact_us.subject.value = "SC CATFIGFICOMMBGAJI";
				xmlCode_Without_Form(); 
			}
			else if(topicSelect == "Sales Spain"){
 				document.ge_power_contact_us.subject.value = "SC CATFJFADCOMMBGAJI";
				xmlCode_Without_Form(); 
			}
			/*else if(topicSelect == "Sales Subsidiaries"){
 				document.ge_power_contact_us.subject.value = "SC CATFIGFJCOMMBGAJI";
				xmlCode_Without_Form(); 
			}*/
			else if(topicSelect == "Sales Western Europe"){
 				document.ge_power_contact_us.subject.value = "SC CATFIGFDCOMMBGAJI";
				xmlCode_Without_Form(); 
			}
			else if(topicSelect == "Service Related Questions") {
				document.ge_power_contact_us.subject.value = "SC EXPCEAIIBCCOMMBGAJI";
				xmlCode_Without_Form(); 				
			}
			else if(topicSelect == "Technical Questions"){
 				document.ge_power_contact_us.subject.value = "SC CATFIGGACOMMBGAJI";
				xmlCode_Without_Form(); 
			}

		 
		}
		 
	
		
		else {
		//==============for default ======
 			document.ge_power_contact_us.subject.value = "SC EXPBBHHIIJCOMMCFICA";
			xmlCode();
		}
 
    if (submitIt(document.ge_power_contact_us))	
	{
		//alert("Action value::: "+document.ge_power_contact_us.action);
 		document.ge_power_contact_us.submit();
	}	
}

function validEmail(emailvalue)
{
	var invalidChars="/:,;";
	if (emailvalue!=""){
		for (i=0; i<invalidChars.length; i++) {
			badChar=invalidChars.charAt(i)
			if (emailvalue.indexOf(badChar,0)!= -1) {
				return false;
			}
		}
		atPos=emailvalue.indexOf("@")
		if (atPos==-1){
			return false;
		}
		if (emailvalue.indexOf("@",atPos+1) !=-1) {
			return false;
		}
		periodPos=emailvalue.indexOf(".",atPos)
		if ((periodPos == -1) || (periodPos == (emailvalue.length - 1))) {	   
			return false;	 
		}	 
	} // end of if not equal to blank
	return true;
}

function submitIt(form)
{

	 if (!validEmail(form.email.value)){
	    alert('Invalid email address');
			return false
	 }	
     return true;
}



<!-- BEGIN New set of category/topics dated 11th July 2006--->
var Air_QualityArray =  new Array("('Select Topic      ','',true,'')",
"('Air Testing')",
"('Boiler Optimization')",
"('Monitoring & Diagnostics')",
"('NOx Control')",
"('Research & Development')",
"('General Information')");

var CareerArray =  new Array("('Select Topic      ','',true,'')",
"('General Information')");

var Bently_Nevada_Asset_Condition_MonitoringArray =  new Array("('Select Topic      ','',true,'')",
"('All Inquiries')",
"('Technical Services')");

var Control_Solutions_Plant_and_TurbineArray =  new Array("('Select Topic      ','',true,'')",
"('All Inquiries')");

var Oilfield_TechnologyArray =  new Array("('Select Topic      ','',true,'')",
"('All Inquiries')");

var ORBIT_MagazineArray =  new Array("('Select Topic      ','',true,'')",
"('All Inquiries')");

var Optimization_and_ControlArray =  new Array("('Select Topic      ','',true,'')",
"('All Inquiries')");

var Reliability_Consulting_and_Implementation_ServicesArray =  new Array("('Select Topic      ','',true,'')",
"('All Inquiries')");

var Reuter_Stokes_Measurement_SolutionsArray =  new Array("('Select Topic      ','',true,'')",
"('All Inquiries')");

var Customer_Technical_TrainingArray =  new Array("('Select Topic      ','',true,'')",
"('All Inquiries')");

var EcomaginationArray =  new Array("('Select Topic      ','',true,'')",
"('General Information')");
var Environmental_ServicesArray =  new Array("('Select Topic      ','',true,'')",
"('General Information')");

var Gas_TurbinesArray =  new Array("('Select Topic      ','',true,'')",
"('Aeroderivatives')",
"('Contractual Service Agreements')",
"('Gasification Technology')",
"('IGCC')",
"('Large (>20MW) Heavy Duty')",
"('Mechanical Drives')",
"('Monitoring')",
"('Small GTS (<20MW)')",
"('Training')",
"('General Information')");

/*var HydroArray =  new Array("('Select Topic      ','',true,'')",
"('General Information')");*/

var Industrial_ServicesArray =  new Array("('Select Topic      ','',true,'')",
"('General Information')");

var Jenbacher_Gas_EnginesArray =  new Array("('Select Topic      ','',true,'')",
"('Company Information')",
"('PR')",
"('Sales Africa, Middle East')",
"('Sales Asia, India')",
"('Sales China')",
"('Sales Denmark')",
"('Sales Eastern Europe')",
"('Sales Germany')",
"('Sales Italy')",
"('Sales Netherlands')",
"('Sales North America')",
"('Sales South America')",
"('Sales Spain')",
"('Sales Western Europe')",
"('Service Related Questions')",
"('Technical Questions')");

//"('Sales Subsidiaries')",





var Electrical_Test_EquipmentArray =  new Array("('Select Topic      ','',true,'')",
"('All Inquiries')");

var MetersArray =  new Array("('Select Topic      ','',true,'')",
"('All Inquiries')");

 var Substation_AutomationArray =  new Array("('Select Topic      ','',true,'')",
"('All Inquiries')");



var Nuclear_PowerArray =  new Array("('Select Topic      ','',true,'')",
"('All Inquiries')");

var Oil_and_GasArray =  new Array("('Select Topic      ','',true,'')",
"('Services')",
"('Nuovo Pignone')",
"('Gemini')",
"('Thermodyn')",
"('Rotoflow')",
"('AC-Compressors')",
"('Odessa')",
"('PII')",
"('Compressors')",
"('Gas turbines')",
"('Steam Turbines')",
"('Pumps')",
"('Expanders')",
"('Static Equipment')",
"('Pipeline Inspection')",
"('Pipeline Integrity Services')");
 
var Plant_Operation_and_MaintenanceArray =  new Array("('Select Topic      ','',true,'')",
"('General Information')");

var Power_Generation_PartsArray =  new Array("('Select Topic      ','',true,'')",
"('Repairs Service Shops')",
"('Technical Service Support')",
"('Operation & Maintenance')",
"('General Information')");

 
 
var SolarArray =  new Array("('Select Topic      ','',true,'')",
"('Off Grid')",
"('Residential')",
"('Commercial')",
"('Modules')",
"('Builder Program')",
"('Dealer/Distributorship')",
"('General')",
"('Other-Please Specify')");

var Software_ApplicationsArray =  new Array("('Select Topic      ','',true,'')",
"('GIS')",
"('Optimization & Diagnostic')",
"('Plant Performance')",
"('SCADA/EMS/DMS/ Outage Management')",
"('System 1 - Condition Monitoring')",
"('Telecommunications')");



var Steam_TurbinesArray =  new Array("('Select Topic      ','',true,'')",
"('Combined Cycle')",
"('Contractual Service Agreements')",
"('Industrial')",
"('Large Fossil')",
"('Mechanical Drives')",
"('Training')",
"('General Information')");


var SupplierArray =  new Array("('Select Topic      ','',true,'')",
"('All Inquiries')");

var TransformersArray =  new Array("('Select Topic      ','',true,'')",
"('All Inquiries')");

/*var Turnkey_Power_PlantsArray =  new Array("('Select Topic      ','',true,'')",
"('General Information')");*/

var Wind_EnergyArray =  new Array("('Select Topic      ','',true,'')",
"('General Information')");

var OtherArray =  new Array("('Select Topic      ','',true,'')",
"('General Information')");
<!--END New set of category/topics dated 11th July 2006-->



function populateTopic(inForm,selected) {
	var selectedArray = eval(selected + "Array");
	while (selectedArray.length < inForm.Topic.options.length) {
		inForm.Topic.options[(inForm.Topic.options.length - 1)] = null;
	}
	for (var i=0; i < selectedArray.length; i++) {
		eval("inForm.Topic.options[i]=" + "new Option" + selectedArray[i]);
		eval("inForm.Topic.options[i].value="  + selectedArray[i]);
	}
}
//==================for default============================
function xmlCode(){
	var line = unescape("-")
	var str = "******************************************************************************** \nThis case was created via the gepower.com website 'contact us' link. This case represents a question from a non-SSO, non-registered customer. No validation or security has been performed prior to this case being opened in Support Central.\n\nPlease evaluate the question and respond **DIRECTLY** to the customer as required and close the case.\n\nFor questions regarding this process please go to the SC Community 'GE Energy Website Feedback'.\n ******************************************************************************** \n\n\n -----SCXMLSTARTSHERE-----"+
	"\n<SC_ADDDETAILS>"+
		"\n<SC_CASE_SUBJECT>"+catSelected+" "+line+" "+topicSelect+"</SC_CASE_SUBJECT>"+
		"\n<SC_CASEFORMID>118743</SC_CASEFORMID>"+
	"\n</SC_ADDDETAILS>";
	var str = unescape(str);
	document.ge_power_contact_us.l.value = str;
}
function xmlCode_Wind_Energy()
	{
	var line = unescape("-");
	var empty = " ";
	var str = "******************************************************************************** \nThis case was created via the gepower.com website 'contact us' link. This case represents a question from a non-SSO, non-registered customer. No validation or security has been performed prior to this case being opened in Support Central.\n\nPlease evaluate the question and respond **DIRECTLY** to the customer as required and close the case.\n\nFor questions regarding this process please go to the SC Community 'GE Energy Website Feedback'.\n ******************************************************************************** \n\n\n -----SCXMLSTARTSHERE-----"+
	" \n<SC_ADDDETAILS>"+
		"\n<SC_CASE_FORM>"+
			"\n<SC_CASEFORMID>151607</SC_CASEFORMID>"+
			"\n<SC_CASEFORM_DATA>"+
				"\n<element scID=\"1306067\"><![CDATA["+ document.ge_power_contact_us.Name.value +"]]></element>"+
				"\n<element scID=\"1306068\"><![CDATA["+ document.ge_power_contact_us.Company.value +"]]></element>"+
				"\n<element scID=\"1306069\"><![CDATA["+ document.ge_power_contact_us.email.value +"]]></element>"+
				"\n<element scID=\"1306070\"><![CDATA["+ document.ge_power_contact_us.Phone.value +"]]></element>"+
				"\n<element scID=\"1306072\"><![CDATA["+ document.ge_power_contact_us.Country.value +"]]></element>"+
				"\n<element scID=\"1306075\"><![CDATA[CDATA["+empty+"]]></element>"+
			"\n</SC_CASEFORM_DATA>"+
		"\n</SC_CASE_FORM>"+
		"\n<SC_CASE_SUBJECT>"+catSelected+" "+line+" "+topicSelect+"</SC_CASE_SUBJECT>"+
		"\n<SC_CASE_SEVERITY>2</SC_CASE_SEVERITY>"+
		"\n<SC_PERSON_AFFECT>2</SC_PERSON_AFFECT>"+
	"\n</SC_ADDDETAILS>";
	var str = unescape(str);
	document.ge_power_contact_us.l.value = str;
	}
	
	//============== for oil & gas pipeline[PII] ========
function xmlCode_Without_Form()
	{
	var line = unescape("-")
	var str = "******************************************************************************** \nThis case was created via the gepower.com website 'contact us' link. This case represents a question from a non-SSO, non-registered customer. No validation or security has been performed prior to this case being opened in Support Central.\n\nPlease evaluate the question and respond **DIRECTLY** to the customer as required and close the case.\n\nFor questions regarding this process please go to the SC Community 'GE Energy Website Feedback'.\n ******************************************************************************** \n\n\n -----SCXMLSTARTSHERE-----"+
	" \n<SC_ADDDETAILS>"+
	 	"\n<SC_CASE_SUBJECT>"+catSelected+" "+line+" "+topicSelect+"</SC_CASE_SUBJECT>"+
		" \n<SC_CASE_SEVERITY>2</SC_CASE_SEVERITY>"+
		" \n<SC_PERSON_AFFECT>2</SC_PERSON_AFFECT>"+
	 "\n</SC_ADDDETAILS>";
	var str = unescape(str);
	document.ge_power_contact_us.l.value = str;
	}
	//=========================================================
	
function xmlCode_Solar_GeneralInfo(){
		var line = unescape("-");
		var empty = " ";
		
		var str = "******************************************************************************** \nThis case was created via the gepower.com website 'contact us' link. This case represents a question from a non-SSO, non-registered customer. No validation or security has been performed prior to this case being opened in Support Central.\n\nPlease evaluate the question and respond **DIRECTLY** to the customer as required and close the case.\n\nFor questions regarding this process please go to the SC Community 'GE Energy Website Feedback'.\n ******************************************************************************** \n\n\n -----SCXMLSTARTSHERE-----"+
	"<SC_ADDDETAILS>"+
		"\n<SC_CASE_FORM>"+
			"\n<SC_CASEFORMID>157544</SC_CASEFORMID>"+
			"\n<SC_CASEFORM_DATA>"+
				"\n<element scID=\"1456422\"><![CDATA["+ document.ge_power_contact_us.Name.value +"]]></element>"+
				"\n<element scID=\"1457838\"><![CDATA["+empty+"]]></element>"+
				"\n<element scID=\"1456426\"><![CDATA["+ document.ge_power_contact_us.Company.value +"]]></element>"+
				"\n<element scID=\"1457880\"><![CDATA["+empty+"]]></element>"+
				"\n<element scID=\"1457881\"><![CDATA["+empty+"]]></element>"+
				"\n<element scID=\"1457882\"><![CDATA["+empty+"]]></element>"+
				"\n<element scID=\"1457895\"><![CDATA["+empty+"]]></element>"+
				"\n<element scID=\"1456358\"><![CDATA["+empty+"]]></element>"+
				"\n<element scID=\"1456356\"><![CDATA["+ document.ge_power_contact_us.Country.value +"]]></element>"+
				"\n<element scID=\"1456361\"><![CDATA["+ document.ge_power_contact_us.Phone.value +"]]></element>"+
				"\n<element scID=\"1456427\"><![CDATA["+ document.ge_power_contact_us.email.value +"]]></element>"+
				"\n<element scID=\"1464208\"><![CDATA["+ topicSelect +"]]></element>"+
				"\n<element scID=\"1456366\"><![CDATA["+ document.ge_power_contact_us.Question.value +"]]></element>"+
			"\n</SC_CASEFORM_DATA>"+
		"\n</SC_CASE_FORM>"+
		"\n<SC_CASE_SUBJECT>"+catSelected+" "+line+" "+topicSelect+"</SC_CASE_SUBJECT>"+
		"\n<SC_CASE_SEVERITY>2</SC_CASE_SEVERITY>"+
		"\n<SC_PERSON_AFFECT>2</SC_PERSON_AFFECT>"+
	"\n</SC_ADDDETAILS>";
		
		var str = unescape(str);
 		document.ge_power_contact_us.l.value = str;
}
	
function remove()
{
	var str = document.ge_power_contact_us.Category.value;
	var i = str.length;
	var arr = new Array(i);
	for(a=0;a<i;a++){
		arr[a]=str.charAt(a); 
		if(arr[a]=='_') { arr[a]=' '; }
	 }
	var finalstr = arr.join(''); 
	document.ge_power_contact_us.Category[document.ge_power_contact_us.Category.selectedIndex].value = finalstr;
 
	var str1 = document.ge_power_contact_us.Topic.value;
	var i1 = str1.length;
	var arr1 = new Array(i1);
	for(a1=0;a1<i1;a1++){
		arr1[a1]=str1.charAt(a1); 
		if(arr1[a1]=='_') { arr1[a1]=' '; }
	 }
	var finalstr1 = arr1.join(''); 
	document.ge_power_contact_us.Topic[document.ge_power_contact_us.Topic.selectedIndex].value = finalstr1;
	var catSelected;
	var topicSelect;
 
}










/*	//===========for wind energy =============
	function xmlCode_Wind_Energy()
	{
	var line = unescape("-")
	var str = "******************************************************************************** \nThis case was created via the gepower.com website 'contact us' link. This case represents a question from a non-SSO, non-registered customer. No validation or security has been performed prior to this case being opened in Support Central.\n\nPlease evaluate the question and respond **DIRECTLY** to the customer as required and close the case.\n\nFor questions regarding this process please go to the SC Community 'GE Energy Website Feedback'.\n ******************************************************************************** \n\n\n -----SCXMLSTARTSHERE----- \n<SC_ADDDETAILS>\n<SC_CASE_FORM>\n<SC_CASEFORMID>151607</SC_CASEFORMID>\n<SC_CASEFORM_DATA>\n<element scID=\"1306067\"><![CDATA["+ document.ge_power_contact_us.Name.value +"]]></element>\n<element scID=\"1306068\"><![CDATA["+ document.ge_power_contact_us.Company.value +"]]></element>\n<element scID=\"1306069\"><![CDATA["+ document.ge_power_contact_us.Email.value +"]]></element>\n<element scID=\"1306070\"><![CDATA["+ document.ge_power_contact_us.Phone.value +"]]></element>\n<element scID=\"1306072\"><![CDATA["+ document.ge_power_contact_us.Country.value +"]]></element>\n<element scID=\"1306076\"><![CDATA["+ document.ge_power_contact_us.Question.value +"]]></element>\n</SC_CASEFORM_DATA>\n</SC_CASE_FORM>\n<SC_CASE_SUBJECT>"+catSelected+" "+line+" "+topicSelect+"</SC_CASE_SUBJECT>\n<SC_CASE_SEVERITY>2</SC_CASE_SEVERITY>\n<SC_PERSON_AFFECT>2</SC_PERSON_AFFECT>\n</SC_ADDDETAILS>";
	var str = unescape(str);
	document.ge_power_contact_us.l.value = str;
	}
	
	//============== for oil & gas pipeline[PII] ========
	function xmlCode_oil_pii()
	{
	var line = unescape("-")
	var str = "******************************************************************************** \nThis case was created via the gepower.com website 'contact us' link. This case represents a question from a non-SSO, non-registered customer. No validation or security has been performed prior to this case being opened in Support Central.\n\nPlease evaluate the question and respond **DIRECTLY** to the customer as required and close the case.\n\nFor questions regarding this process please go to the SC Community 'GE Energy Website Feedback'.\n ******************************************************************************** \n\n\n -----SCXMLSTARTSHERE----- \n<SC_ADDDETAILS>\n<SC_CASE_SUBJECT>"+catSelected+" "+line+" "+topicSelect+"</SC_CASE_SUBJECT>\n<SC_CASE_SEVERITY>2</SC_CASE_SEVERITY>\n<SC_PERSON_AFFECT>2</SC_PERSON_AFFECT>\n</SC_ADDDETAILS>";
	var str = unescape(str);
	document.ge_power_contact_us.l.value = str;
	}
	
	//============== for oil & gas others ==========
	function xmlCode_oil_gas()
	{
	var line = unescape("-")
	var str = "******************************************************************************** \nThis case was created via the gepower.com website 'contact us' link. This case represents a question from a non-SSO, non-registered customer. No validation or security has been performed prior to this case being opened in Support Central.\n\nPlease evaluate the question and respond **DIRECTLY** to the customer as required and close the case.\n\nFor questions regarding this process please go to the SC Community 'GE Energy Website Feedback'.\n ******************************************************************************** \n\n\n -----SCXMLSTARTSHERE----- \n<SC_ADDDETAILS>\n<SC_CASE_SUBJECT>"+catSelected+" "+line+" "+topicSelect+"</SC_CASE_SUBJECT>\n<SC_CASE_SEVERITY>2</SC_CASE_SEVERITY>\n<SC_PERSON_AFFECT>2</SC_PERSON_AFFECT>\n</SC_ADDDETAILS>";
	var str = unescape(str);
	document.ge_power_contact_us.l.value = str;
	}
 

//==========================================*/
function create_HPSDCase(cat,topic){

 	document.ge_power_contact_us.formname.value="ge_power_contact_us_hpsd";
	document.ge_power_contact_us.subject.value="Create Service Call";
	document.ge_power_contact_us.action="/ext114/mailsrv/app/feedback";
	
	
	document.getElementsByName("Caller SSO ID ")[0].value="501144565";
	document.getElementsByName("Assignment to Workgroup Name 1 ")[0].value="L2 Energy Global Sourcing Helpdesk";
	document.getElementsByName("Open CI Search Code ")[0].value="Other";
	document.getElementsByName("Priority ")[0].value="S1";
	document.getElementsByName("Category ")[0].value="Service - Other";
	document.getElementsByName("Language ")[0].value="English";
	document.getElementsByName("Description ")[0].value="Contact Us- Supplier Inquire";

	var general_info="\n";
	general_info+="Name  :  "+document.ge_power_contact_us.Name.value+"\n";
	general_info+="Company  :  "+document.ge_power_contact_us.Company.value+"\n";
	general_info+="City  :  "+document.ge_power_contact_us.City.value+"\n";
	general_info+="State  :  "+document.ge_power_contact_us.State.value+"\n";
	general_info+="Country  :  "+document.ge_power_contact_us.Country.value+"\n";
	general_info+="Email  :  "+document.ge_power_contact_us.email.value+"\n";
	general_info+="Phone  :  "+document.ge_power_contact_us.Phone.value+"\n";
	general_info+="Category  :  "+cat+"\n";
	general_info+="Topic  :  "+topic+"\n";
	general_info+="Reference Number  :  "+document.ge_power_contact_us.Reference_No.value+"\n";
	general_info+="Reference Type  :  "+document.ge_power_contact_us.Reference_Type.value+"\n";
	general_info+="Question  :  "+document.ge_power_contact_us.Question.value+"\n";
	document.getElementsByName("General Information ")[0].value=general_info;
  //alert(document.ge_power_contact_us.Description.value);
  //alert(document.ge_power_contact_us.Category.value);
}
function getSSO(){
var category = document.ge_power_contact_us.Category.options[document.ge_power_contact_us.Category.selectedIndex].value;
var topic = document.ge_power_contact_us.Topic.options[document.ge_power_contact_us.Topic.selectedIndex].value;
 if(category == "Supplier" && topic == "All Inquiries")
{
	var value="<table><tr>"+
			  "<td valign='top'>*</td>"+
			  "<td>SSO ID</td>"+
			  "<td width='10'><img src='/global/common/images/spacer.gif' alt='' width='2' height='1' border='0' /></td>"+
			  "<td><input type='text' name='sso_id' id='sso_id' value=''  size='20' style='width:200px;' title='Please Type Your SSO ID in This Text Box' />"+
			  "</td></tr><tr>"+
			  "<td colspan='3'><img src='/global/common/images/spacer.gif' width='2' height='5' alt='' border='0' /></td>"+
			  "</tr></table>";
	 document.getElementById('sso').innerHTML=value;
}
else{
	document.getElementById('sso').innerHTML="";
}

}