/******************************************************************************
 Copyright (c) 2007 Samsung Electronics. All Rights Reserved.
 Project: Samsung.com Site Renewal(2007.01~07)

 File Name : download.js
 Description : downloadRegist.jsp °ü·Ã js
 Author : ¹ÚÁöÀ±
 Since : 2006.04.13

 Modification Information
 Mod Date	Modifier	Description
 ----------	--------	---------------------------
 2007.04.13	¹ÚÁöÀ±		ÃÖÃÊ »ý¼º
******************************************************************************/


//*****************************************************************************
// Description : °í°´ º§¸®µ¥ÀÌ¼Ç Ã¼Å© 
// Parameter: 
// Return: ¾øÀ½
// Usage: 
//*****************************************************************************

function CustInsert(){
	var Dlform = document.DownloadForm;
		if (!isValidType(Dlform.cust_email, "EMAIL", msgEmail)) {
			Dlform.cust_email.focus();
			return;
		}
		if (isEmpty(Dlform.cust_fname, msgFname)) {
			Dlform.cust_fname.focus();
			return;
		}
		if (isEmpty(Dlform.cust_lname, msgLname)) {
			Dlform.cust_lname.focus();
			return;
		}		
		if (isNotSelect(Dlform.cust_nation_cd, msgCountry)) {
			Dlform.cust_nation_cd.focus();
			return;	
		}		
		if (isEmpty(Dlform.cust_company_name, msgCompany)) {
			Dlform.cust_company_name.focus();
			return;
		}		
		Dlform.action = '/global/business/semiconductor/flashsoftwareDownload.do?' + menuParamiter;
		Dlform.submit();
}

//*****************************************************************************
// Description : ÇÃ·¡½Ã ¼ÒÇÁÆ®¿þ¾î ÆÄÀÏ ´Ù¿î·Îµå
// Parameter: file_logi_name, file_phyi_name, file_phyi_path
// Return: None
// Usage: onclick="javascript:brochure_download(file_logi_name, file_phyi_name, file_phyi_path);"
//*****************************************************************************
function fileDownload(file_logi_name, file_phyi_name, file_phyi_path) {
//	file_phyi_path = file_phyi_path.replaceAll('/', filesystemDelimiter);
	
//	var vUrl = file_phyi_path + filesystemDelimiter + file_phyi_name;
	
//	document.location.href = vUrl;
	var vUrl = '/global/business/semiconductor/products/flash/downloads/OneNAND_OpenLLD.zip';
	newWindow(400,	300, vUrl, 1);

}


//*****************************************************************************
// Description : flash software home À¸·Î ÀÌµ¿
// Parameter: 
// Return: ¾øÀ½
// Usage: 
//*****************************************************************************
function FlashHome() {
	document.location.href = '/global/business/semiconductor/products/flash/Products_FlashSoftware.html';
}
