var divCloserName='DivCloser';var IFRAMEmasterName='IFRAMEmaster';var divMainVisibilityName='ucALFA_IFrame';var divSpinnerName='DivSpinner';function showForm(){document.getElementById('gri').style.display='block';var DivMain=document.getElementById(divMainVisibilityName);if(DivMain!=null){if(DivMain.style.display=="block"){divMainVisibility("none")}else{divMainVisibility("block");var IFRAMEmaster=document.getElementById(IFRAMEmasterName);if(IFRAMEmaster!=null){IFRAMEmasterVisibility("block");var indexOf=-1;if((IFRAMEmaster.src!=null)&&(IFRAMEmaster.src!="")){indexOf=IFRAMEmaster.src.indexOf("WebFormsNM.aspx",0)}if((IFRAMEmaster.src==null)||(IFRAMEmaster.src=="")||(indexOf<0)){divSpinnerVisibility("block");IFRAMEmaster.src='http://selfcare.fiat.com/WebFormsNM.aspx?BRAND=00&selfclose=yes'}else{divCloserVisibility("block")}}else{alert(divMainVisibilityName+" not found")}}}else{alert(divMainVisibilityName+" not found")}}function divCloserVisibility(attribute){divGenericVisibility(divCloserName,attribute)}function IFRAMEmasterVisibility(attribute){divGenericVisibility(IFRAMEmasterName,attribute)}function divMainVisibility(attribute){divGenericVisibility(divMainVisibilityName,attribute)}function divSpinnerVisibility(attribute){divGenericVisibility(divSpinnerName,attribute)}function divGenericVisibility(objectName,attribute){var DivGeneric=document.getElementById(objectName);if(DivGeneric!=null){DivGeneric.style.display=attribute}}function functionToCallAfterLoading(fromHow){var iframe=document.getElementById(IFRAMEmasterName);if(iframe!=null){var indexOf=-1;if((iframe.src!=null)&&(iframe.src!="")){indexOf=iframe.src.indexOf("WebFormsNM.aspx",0)}if((iframe.src!=null)&&(iframe.src!="")&&(indexOf>0)){divCloserVisibility("block");divSpinnerVisibility("none")}}}function CloseIframe(){IFRAMEmasterVisibility("none");divCloserVisibility("none");divMainVisibility("none");document.getElementById('gri').style.display='none'}function resize(){window.moveTo(0,0);window.resizeTo(400,300);var x=screen.width;var y=screen.height;var hx=x/2;var hy=y/2;var a=x;var b=y;var ha=a/2;var hb=b/2;var dx=hx-ha;var dy=(hy-hb)-20;var param="width="+a+",height="+b+",left="+dx+",top="+dy+",screenX="+dx+",screenY="+dy;window.open("http://www.google.com/","Popup",param)}document.write("<style  type=\"text/css\">");document.write("	 .divGray{");document.write("		position:absolute; ");document.write("		left:0px;");document.write("		top:-20px;");document.write("		width:100%; ");document.write("		height:1400px; ");document.write("		z-index:900;");document.write("		filter: alpha(opacity=90); -moz-opacity:.90;opacity:.90;	");document.write("		background-color:#454545;");document.write("	}");document.write("</style>");document.write("<div id=\"gri\" class=\"divGray\" style=\"display:none;\"></div>");document.write("		<div id=\"DivSpinner\" style=\"display:none;position:absolute;left:300px;top:300px;background-color:#ffffff;font-family:Verdana;font-size:medium;z-index: 7;\">");document.write("            <div>");document.write("				Loading TestDrive Form ...&nbsp;");document.write("				<img style=\"vertical-align:middle\" src=\"http://www.fiat.it/FIAT_ITALIA/NMForms/img/spinnerSmall.gif\" alt=\"\" />");document.write("			</div>");document.write("		</div>");document.write("		<div id=\"ucALFA_IFrame\" style=\"display:none;position:absolute;  z-index:1000;background-color:#fff;margin: 0pt auto; top:20px;\">");document.write("			<div id=\"DivCloser\" style=\"display:none;position:absolute;left:915px;top:0px;z-index:200000;  width:50px; height:50px;\" onClick=\"CloseIframe();\" >");document.write("				<img  src=\"http://www.fiat.it/FIAT_ITALIA/NMForms/img/spaziatore.gif\" onClick=\"CloseIframe();\" style=\"padding-left: 843px; padding-top: 25px; width: 71px; height: 19px;\"/>");document.write("			</div>");document.write("            <iframe id=\"IFRAMEmaster\"  onLoad=\"functionToCallAfterLoading();\"  width=\"990\" height=\"605\" frameborder=\"0\" scrolling=\"no\" marginheight=\"0\" marginwidth=\"0\" src=\"\"></iframe>");document.write("		</div>");var divArray=document.getElementById('ucALFA_IFrame');var x=screen.width;var halfWidthScreen=x/2;var metaFrame=990/2;var dx=halfWidthScreen-metaFrame;divArray.style.left=dx;
