function scrHead(){
var doc_obj='<div class="indexHead"><table cellpadding="0" cellspacing="0" class="idxtbl">'
           +'<tr><td><table cellpadding="0" cellspacing="0" class="bor">'
           +'<td width="24" height="24" class="hbtn">&nbsp;</td></table></td>'
           +'<td><span class="hx1">&nbsp;Artopix</span><span class="hx2"> /'
           +'<img src="http://www.artopix.net/gif/admin.gif" width="16" height="16" hspace="5" alt="" /> WebDesign&Programming</span>'
           +'</td><td>'
           +'<span class="hf0">'
           +'<form method="GET" action="http://www.google.co.jp/search" class="hform">'
           +'<span class="hf1">'
           +'<span class="hf2">G</span>'
           +'<span class="hf3">o</span>'
           +'<span class="hf4">o</span>'
           +'<span class="hf5">g</span>'
           +'<span class="hf6">l</span>'
           +'<span class="hf7">e </span>'
           +'<input type="text" name="q" size="31" maxlength="255" value="" />\&nbsp\;'
           +'<input type="hidden" name="hl" value="ja" />'
           +'<input type="hidden" name="ie" value="utf-8" />'
           +'<input type="submit" name="btnG" value="検索" />'
           +'</span></form></span>'
           +'</td></tr></table><hr class="hsp" /></div>';
document.write(doc_obj);
}

function sendForm(){
var mail_obj='<form name="imp_login" action="https://webmail.artopix.net/imp/redirect.php" method="post" target="_parent">'
+'<img src="./gif/User.gif" width="24" height="12" alt="◆" class="img_hsp3" />'
+'<input tabindex="1" name="imapuser" value="" size="16" type="text" /><br />'
+'<img src="./gif/Pass.gif" width="24" height="12" alt="◆" class="img_hsp3" />'
+'<input tabindex="2" name="pass" size="16" type="password" /><br />'
+'<input name="loginButton" tabindex="4" value="OK" onclick="return submit_login();" type="submit" />'
+'<input name="load_frameset" value="1" type="hidden" />'
+'<input name="autologin" value="0" type="hidden" />'
+'<input name="server_key" value="imap" type="hidden" />'
+'</form>';
document.write(mail_obj);
}
function goMail(){location.href='http://www.artopix.net/support/supportBB.php';}
function footEnv(){
document.write('<hr class="fhr" />'
              +'<div class="copy_bar">Copyright&copy; Artopix All Rights Reserved.&nbsp;'
              +'<small>※Artopix.net に掲載の記事・画像の無断転載を禁じます。</small>'
              +'|<a href="http://support.artopix.net/index.html#rule">利用規約</a>'
              +'|<a href="http://support.artopix.net/index.html#prvt">個人情報の取り扱い</a>'
              +'|<a href="http://support.artopix.net/index.html#rule">サイトポリシー</a>'
              +'</div>');
}

function chkForm(){
if (document.imp_login.imapuser.value == '' || document.imp_login.pass.value == '')
{
 alert('必要項目が入力されていません');
 return false;
 }
 else if(checkData()){
 alert('ユーザー名が正しくありません');
 return false;
 }
}
function checkData(){
    usr = document.imp_login.imapuser.value
 if(usr == ''){
    return true;
    }
 else if(usr.indexOf('@')==-1){
    return true;
 }
 for(i=0;i<usr.length;i++){
     if(checkChr(usr.charAt(i))){
     return true;
     }
 }
 return false;
}

function checkChr(j){
 if(j >= '0'&&j <= '9'){
 return false;
 }
 else if(j >= 'a'&&j <= 'z'){
 return false;
 }
  else if(j >= 'A'&&j <= 'Z'){
 return false;
 }
 else if(j == '-'||j == '_'||j == '.'||j == '@'){
 return false;
 }
 return true;
}
function subWin(w,x,y){var subWin;
subWin=window.open(w,'formObj','width='+x+',height='+y+',scrollbars=yes,resizable=no,toolbar=no,location=no,directories=no,status=no');subWin.focus();
}
