// varsion check //

var Win=(navigator.userAgent.indexOf("Win")!=-1);
var Mac=(navigator.userAgent.indexOf("Mac")!=-1);
var Explorer=(navigator.appName.indexOf("Explorer")!=-1);
var Netscape=(navigator.appName.indexOf("Netscape")!=-1);

if
(Win && Explorer)
{document.write('<LINK rel="stylesheet" href="css/mainstyle_win_ie.css" type="text/css">');}

else if
(Win && Netscape) 
{document.write('<LINK rel="stylesheet" href="css/mainstyle_win_nn.css" type="text/css">');}

else if
(Mac && Explorer) 
{document.write('<LINK rel="stylesheet" href="css/mainstyle_mac_ie.css" type="text/css">');}

else if
(Mac && Netscape) 
{document.write('<LINK rel="stylesheet" href="css/mainstyle_mac_nn.css" type="text/css">');}


// 問い合わせフォームをサブウィンドウで開く//
function openWin(url, name){
		window.open(url, name,"width=590,height=650,scrollbars=1,location=0,resizable=1").focus();
}
