
// Æû Ã¼Å©
function cnjmail_Form() {

var string1=document.cnjmail.email.value
var str=document.cnjmail;
   
if (str.s_name.value.length < 2) {
alert("Please check Company Name filled.");
str.s_name.focus();
return false;
}

if (str.tel_no.value.length < 9 ) {
alert("Please check Telephone No. filled.");
str.tel_no.focus();
return false;
}

if (str.fax_no.value.length < 9 ) {
alert("Please check Fax No. filled.");
str.fax_no.focus();
return false;
}

if (str.from.value.length < 2) {
alert("Please check Your Name filled.");
str.from.focus();
return false;
}

if ((str.email.value.length < 5) || (string1.indexOf("@")==-1)) {
alert("Please check Your E-Mail filled.");
str.email.focus();
return false;
}

if (str.addr.value.length < 10 ) {
alert("Please check Your Address filled.");
str.addr.focus();
return false;
}

if (str.subject.value.length < 2 ) {
alert("Please check Title filled.");
str.subject.focus();
return false;
}

if (str.content.value.length < 10 ) {
alert("Please Check Decription filled.");
str.content.focus();
return false;
}

alert("Thanks a lot! Successfully Transmitted. \n\nWe will be back to you soon with good news. \n\nWarmest Regards \n\n                    - AKORM -");



}

// Æ¯¼ö¹®ÀÚ ÀÔ·Â

function cnj_word(str)
{
document.forms[0].content.value += str;
document.forms[0].content.focus();
}

// ¸¶¿ì½º °¡¸é ÅØ½ºÆ®ÇÊµå ±ÛÀÚ°¡ »ç¶óÁü
function data_search(field,type){ if (!field.value && type) field.value = field.defaultValue;}          
function data_search2(field,type){ if (field.value == field.defaultValue && type) field.value = '';}
