function openNewWindow() {
	var option = "toolbar=n,menubar=n,scrollbars=n,resizable=n,width=200,height=100,left=300,top=200";
	newWindow=window.open("popup.htm", "information", option); 
}

function showcstatus(agr){
	switch (agr) {
		case "0":
			alert('We have received your request and will contact you shortly. Thanks!');
			openNewWindow();
			break;
		case "10":
			alert('Your Full Name is empty!');
			break;
		case "11":
			alert('You name below 1 characters!');
			break;
		case "12":
			alert('You name over 30 characters!');
			break;
		case "13":
			alert('You name not alphanumeric!');
			break;
		case "20":
			alert('You mail is empty!');
			break;
		case "21":
			alert('You mail is invalid!');
			break;
		case "30":
			alert('You user id is empty!');
			break;
		case "31":
			alert('user id already is use!');
			break;
		case "32":
			alert('You user id below 1 characters!');
			break;
		case "33":
			alert('You user id over 20 characters!');
			break;
		case "34":
			alert('You user id not alphanumeric!');
			break;
		case "40":
			alert('password is empty!');
			break;
		case "45":
			alert('password & confrim password should be same!');
			break;
		case "50":
			alert('comfrim password is empty!');
			break;
		case "60":
			alert('company is empty!');
			break;
		case "70":
			alert('designation is empty!');
			break;
		case "80":
			alert('country is empty!!');
			break;
		case "90":
			alert('contact is empty!');
			break;
		case "201":
			alert('Phone is not correct!');
			break;
		case "212":
			alert('Phone can not empty!');
			break;
		case "202":
			alert('Mobile is not correct!');
			break;
		case "203":
			alert('Fax is not correct!');
			break;
		default :
			alert('e-mail can not send, please try again!');
	}
}
function showstatus(agr){
	switch (agr) {
		case "0":
			alert('We have received your request and will contact you shortly. Thanks!!');
			openNewWindow();
			break;
		case "10":
			alert('You name is empty!');
			break;
		case "11":
			alert('You name below 1 characters!');
			break;
		case "12":
			alert('You name over 30 characters!');
			break;
		case "13":
			alert('You name not alphanumeric!');
			break;
		case "20":
			alert('You mail is empty!');
			break;
		case "21":
			alert('You mail is invalid!');
			break;
		case "30":
			alert('Model Name is empty!');
			break;
		case "40":
			alert('Select is empty!');
			break;
		case "50":
			alert('Company is empty!');
			break;
		case "60":
			alert('Office Telephone is empty!');
			break;
		case "70":
			alert('Designation is empty!');
			break;
		case "80":
			alert('Date is not correct!');
			break;
		case "90":
			alert('budget should be numeric!');
			break;
		case "100":
			alert('Time is not correct!');
			break;
		case "201":
			alert('Phone is not correct!');
			break;
		case "202":
			alert('Mobile is not correct!');
			break;
		case "212":
			alert('Mobile can not empty!');
			break;
		case "203":
			alert('Fax is not correct!');
			break;
		default :
			alert('mail can not send, please try again!');
	}
}

var flashinstalled = 0;
var flashversion = 0;
MSDetect = "false";
if (navigator.plugins && navigator.plugins.length)
{
	x = navigator.plugins["Shockwave Flash"];
	if (x)
	{
		flashinstalled = 2;
		if (x.description)
		{
			y = x.description;
			flashversion = y.charAt(y.indexOf('.')-1);
		}
	}
	else
		flashinstalled = 1;
	if (navigator.plugins["Shockwave Flash 2.0"])
	{
		flashinstalled = 2;
		flashversion = 2;
	}
}
else if (navigator.mimeTypes && navigator.mimeTypes.length)
{
	x = navigator.mimeTypes['application/x-shockwave-flash'];
	if (x && x.enabledPlugin)
		flashinstalled = 2;
	else
		flashinstalled = 1;
}
else
	MSDetect = "true";